mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Deleted code referencing something I deleted earlier.
This commit is contained in:
parent
53372a60a9
commit
fdeb2fc14e
1 changed files with 2 additions and 4 deletions
|
|
@ -15,6 +15,7 @@ class SimpleText(models.Model):
|
|||
class Meta:
|
||||
verbose_name_plural = 'Simple Text'
|
||||
ordering = ('-created',)
|
||||
get_latest_by = 'updated'
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
|
@ -25,11 +26,8 @@ class SimpleText(models.Model):
|
|||
@permalink
|
||||
def get_absolute_url(self):
|
||||
return ('simpletext_detail_view_name', [str(self.id)])
|
||||
|
||||
|
||||
import categories
|
||||
from categories.models import CategoryIntermediary
|
||||
class SimpleTextCategories(CategoryIntermediary):
|
||||
simpletext = models.ForeignKey(SimpleText)
|
||||
|
||||
categories.register_fk(SimpleText, 'primary_category', {'related_name':'simpletext_primary_set'})
|
||||
categories.register_m2m(SimpleText, 'cats', )
|
||||
Loading…
Reference in a new issue