diff options
Diffstat (limited to 'app/projects/models/base.py')
-rw-r--r-- | app/projects/models/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/projects/models/base.py b/app/projects/models/base.py index 44c413e..a45fe04 100644 --- a/app/projects/models/base.py +++ b/app/projects/models/base.py @@ -13,7 +13,7 @@ def get_upload_path(self, filename): class Project(models.Model): title = models.CharField(max_length=200) subtitle = models.CharField(max_length=200, null=True, blank=True) - slug = models.SlugField(unique_for_date='pub_date') + slug = models.CharField(max_length=50) lede = models.TextField(blank=True) pub_date = models.DateTimeField('Date published') PUB_STATUS = ( @@ -48,7 +48,7 @@ class Project(models.Model): return self.title def get_absolute_url(self): - return "/%s/%s/" % ('projects', self.slug) + return "/%s/" % (self.slug) def get_previous_published(self): return self.get_previous_by_pub_date(status__exact=1) |