Mercurial > public > sg101
diff downloads/admin.py @ 685:a75554eb6bae
For Django 1.5: slugify is now available at django.utils.text.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 Aug 2013 19:40:01 -0500 |
parents | 0dd84cff2477 |
children |
line wrap: on
line diff
--- a/downloads/admin.py Fri Aug 23 19:17:40 2013 -0500 +++ b/downloads/admin.py Fri Aug 23 19:40:01 2013 -0500 @@ -11,8 +11,7 @@ from downloads.models import Category from downloads.models import AllowedExtension from downloads.models import VoteRecord -# TODO: In Django 1.5 this will be available in django.utils.text: -from django.template.defaultfilters import slugify +from django.utils.text import slugify def rename_download(dl):