1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-12 14:38:58 +00:00
seahub/contacts/models.py

15 lines
448 B
Python
Raw Normal View History

2012-02-11 03:12:54 +00:00
from django.db import models
2012-05-04 08:30:07 +00:00
from django.forms import ModelForm
2012-02-11 03:12:54 +00:00
class Contact(models.Model):
"""Record user's contacts."""
2012-05-04 08:30:07 +00: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