Author: leidel
Date: Sun Sep 28 11:39:47 2008
New Revision: 976
Modified:
trunk/local_apps/tribes/models.py
Log:
Cleaned up tribes model a bit
Modified: trunk/local_apps/tribes/models.py
==============================================================================
--- trunk/local_apps/tribes/models.py (original)
+++ trunk/local_apps/tribes/models.py Sun Sep 28 11:39:47 2008
@@ -2,7 +2,6 @@
from django.db import models
from django.db.models import signals
-from django.utils.html import escape
from django.utils.translation import ugettext_lazy as _
from django.contrib.contenttypes import generic
@@ -10,7 +9,6 @@
from django.contrib.auth.models import User
from tagging.fields import TagField
-from tagging.models import Tag
from photos.models import Pool
try:
@@ -43,9 +41,9 @@
def __unicode__(self):
return self.name
- @models.permalink
def get_absolute_url(self):
return ("tribe_detail", [self.slug])
+ get_absolute_url = models.permalink(get_absolute_url)
class Topic(models.Model):
@@ -66,9 +64,9 @@
def __unicode__(self):
return self.title
- @models.permalink
def get_absolute_url(self):
return ("tribe_topic", [self.pk])
+ get_absolute_url = models.permalink(get_absolute_url)
class Meta:
ordering = ('-modified', )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---