Archived
1
0

provide url for ctl

This commit is contained in:
Jeff Becker 2016-11-09 15:12:46 -05:00
parent d1a81f319d
commit 801272ae7d
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -41,6 +41,8 @@ class Newsgroup(models.Model):
banned = models.BooleanField(default=False)
def get_absolute_url(self):
if self.name == 'ctl':
return reverse('frontend:modlog')
return reverse('frontend:board-front', args=[self.name[9:]])
class Post(models.Model):