Mercurial > public > sg101
comparison weblinks/models.py @ 675:6e6492468bb8
Add admin action to acknowledge flagged links.
Fix bug where weblinks js wasn't being included on detail page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Aug 2013 22:12:03 -0500 |
parents | ee87ea74d46b |
children | 3e1905e523be |
comparison
equal
deleted
inserted
replaced
673:92101013d5ac | 675:6e6492468bb8 |
---|---|
109 class FlaggedLink(models.Model): | 109 class FlaggedLink(models.Model): |
110 """Model to represent links that have been flagged as broken by users""" | 110 """Model to represent links that have been flagged as broken by users""" |
111 link = models.ForeignKey(Link) | 111 link = models.ForeignKey(Link) |
112 user = models.ForeignKey(User) | 112 user = models.ForeignKey(User) |
113 date_flagged = models.DateField(auto_now_add = True) | 113 date_flagged = models.DateField(auto_now_add = True) |
114 approved = models.BooleanField(default = False, | 114 approved = models.BooleanField(default = False, |
115 help_text = 'Check this and save to remove the referenced link from the database') | 115 help_text = 'Check this and save to remove the referenced link from the database') |
116 | 116 |
117 objects = FlaggedLinkManager() | 117 objects = FlaggedLinkManager() |
118 | 118 |
119 def save(self, *args, **kwargs): | 119 def save(self, *args, **kwargs): |