Skip to content

Commit

Permalink
Deleted code referencing something I deleted earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Oordt committed Apr 6, 2010
1 parent 53372a6 commit fdeb2fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sample/simpletext/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,11 +26,8 @@ def __unicode__(self):
@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', )

0 comments on commit fdeb2fc

Please sign in to comment.