Ticket #1535: models.py
File models.py, 307 bytes (added by , 19 years ago) |
---|
Line | |
---|---|
1 | from django.db import models |
2 | from django.contrib.auth.models import User |
3 | |
4 | class Issue(models.Model): |
5 | cc = models.ManyToManyField(User, blank=True, related_name='test_issue_cc') |
6 | client = models.ForeignKey(User, related_name='test_issue_client') |
7 | def __repr__(self): |
8 | return "<Issue %d>" % (self.id,) |