Commit 257106ae by Bach Dániel

dashboard: remove @permalink

parent 4c7d268c
......@@ -27,7 +27,7 @@ from django.contrib.auth.signals import user_logged_in
from django.core.urlresolvers import reverse
from django.db.models import (
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.templatetags.static import static
......@@ -75,9 +75,9 @@ class Message(TimeStampedModel, TimeFramedModel):
def __unicode__(self):
return self.message
def get_absolute_url(self):
return ('dashboard.views.message-detail', None, {'pk':})
return reverse('dashboard.views.message-detail',
class Favourite(Model):
......@@ -291,10 +291,9 @@ class GroupProfile(AclBase):
except cls.DoesNotExist:
return Group.objects.get(name=name)
def get_absolute_url(self):
return ('', None,
return reverse('',
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