Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Notification(model.Model):
- owner = models.ForeignKey(User)
- datetime = models.DateTimeField(auto_now_add=True)
- resources = models.ManyToManyField(Resource, related_name='notifications', blank=True)
- recipients = models.ManyToManyField(User, related_name='notifications', blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement