Permalink
Browse files

Add example get_absolute_url

Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information...
1 parent 091c0db commit 7b4fe4c258f8a3a426da9125b20bddebf3a1caeb @lamby committed Dec 10, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 django_lint_example/example/models/__init__.py
@@ -133,6 +133,9 @@ def __unicode__(self):
class Model5(models.Model):
dummy = models.CharField(max_length=1)
+ def get_absolute_url(self):
+ return "/"
+
def __unicode__(self):
return self.dummy

0 comments on commit 7b4fe4c

Please sign in to comment.