App Engine Python SDK version 1.7.4 (2)
[gae.git] / python / lib / django_1_4 / tests / regressiontests / model_permalink / models.py
blob4823fd46c7ac1f872f4d5163ec79d2725806d91b
1 from django.db import models
4 class Guitarist(models.Model):
5 name = models.CharField(max_length=50)
6 slug = models.CharField(max_length=50)
8 @models.permalink
9 def url(self):
10 "Returns the URL for this guitarist."
11 return ('guitarist_detail', [self.slug])