Ticket #1535: models.py

File models.py, 307 bytes (added by Russell Cloran <russell@…>, 19 years ago)

Entire test models.py

Line 
1from django.db import models
2from django.contrib.auth.models import User
3
4class 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,)
Back to Top