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

12 lines
324 B
Python

from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
class Contact(models.Model):
"""Record user's contacts."""
owner = models.ForeignKey(User, related_name="contacts")
user = models.ForeignKey(User, related_name="contacts2me")