2011-03-14 13:22:39 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2011-10-14 05:34:56 +08:00
|
|
|
|
2011-03-14 13:22:39 +08:00
|
|
|
class Guitarist(models.Model):
|
|
|
|
name = models.CharField(max_length=50)
|
|
|
|
slug = models.CharField(max_length=50)
|
|
|
|
|
|
|
|
@models.permalink
|
|
|
|
def url(self):
|
|
|
|
"Returns the URL for this guitarist."
|
|
|
|
return ('guitarist_detail', [self.slug])
|