from django.db import models
+from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from threadedcomments.models import ThreadedComment
def __str__(self):
return self.name
+ def get_absolute_url(self):
+ return reverse('influences_influence_detail', kwargs={'object_id' : self.pk})
+
class Meta:
verbose_name = _("Character")
verbose_name_plural = _("Characters")
def __str__(self):
return self.summary
+ def get_absolute_url(self):
+ return reverse('influences_influence_detail', kwargs={'object_id' : self.pk})
+
def get_comments(self, private):
"""
Gets the comments that have been made on this Influence. Each