| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from django.contrib.auth.models import User |
||
| 2 | from django.db import models |
||
| 3 | |||
| 4 | |||
| 5 | class Notification(models.Model): |
||
| 6 | |||
| 7 | class Meta: |
||
| 8 | app_label = 'ore' |
||
| 9 | |||
| 10 | title = models.CharField(max_length=255) |
||
| 11 | users = models.ManyToManyField(User) |
||
| 12 | modified = models.DateTimeField(auto_now=True) |
||
| 13 | created = models.DateTimeField(auto_now_add=True, editable=False) |
||
| 14 | text = models.CharField(max_length=255) |
||
| 15 | |||
| 16 | def __unicode__(self): |
||
| 17 | return unicode(self.title) |
||
|
|
|||
| 18 |