1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00
Files
seahub/contacts/models.py

15 lines
448 B
Python
Raw Normal View History

2012-02-11 11:12:54 +08:00
from django.db import models
2012-05-04 16:30:07 +08:00
from django.forms import ModelForm
2012-02-11 11:12:54 +08:00
class Contact(models.Model):
"""Record user's contacts."""
2012-05-04 16:30:07 +08:00
user_email = models.CharField(max_length=255)
contact_email = models.CharField(max_length=255)
contact_name = models.CharField(max_length=255, blank=True, null=True)
note = models.CharField(max_length=255, blank=True, null=True)
class AddContactForm(ModelForm):
class Meta:
model = Contact