Commit 257106ae by Bach Dániel

dashboard: remove @permalink

parent 4c7d268c
...@@ -27,7 +27,7 @@ from django.contrib.auth.signals import user_logged_in ...@@ -27,7 +27,7 @@ from django.contrib.auth.signals import user_logged_in
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.db.models import ( from django.db.models import (
Model, ForeignKey, OneToOneField, CharField, IntegerField, TextField, Model, ForeignKey, OneToOneField, CharField, IntegerField, TextField,
DateTimeField, permalink, BooleanField DateTimeField, BooleanField
) )
from django.db.models.signals import post_save, pre_delete, post_delete from django.db.models.signals import post_save, pre_delete, post_delete
from django.templatetags.static import static from django.templatetags.static import static
...@@ -75,9 +75,9 @@ class Message(TimeStampedModel, TimeFramedModel): ...@@ -75,9 +75,9 @@ class Message(TimeStampedModel, TimeFramedModel):
def __unicode__(self): def __unicode__(self):
return self.message return self.message
@permalink
def get_absolute_url(self): def get_absolute_url(self):
return ('dashboard.views.message-detail', None, {'pk': self.pk}) return reverse('dashboard.views.message-detail',
kwargs={'pk': self.pk})
class Favourite(Model): class Favourite(Model):
...@@ -291,10 +291,9 @@ class GroupProfile(AclBase): ...@@ -291,10 +291,9 @@ class GroupProfile(AclBase):
except cls.DoesNotExist: except cls.DoesNotExist:
return Group.objects.get(name=name) return Group.objects.get(name=name)
@permalink
def get_absolute_url(self): def get_absolute_url(self):
return ('dashboard.views.group-detail', None, return reverse('dashboard.views.group-detail',
{'pk': self.group.pk}) kwargs={'pk': self.group.pk})
def get_or_create_profile(self): def get_or_create_profile(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment