Mercurial > public > sg101
changeset 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 | 161b56849114 |
children | 216f06267e2d |
files | downloads/admin.py downloads/management/commands/dlwgetcat.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
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):
--- a/downloads/management/commands/dlwgetcat.py Fri Aug 23 19:17:40 2013 -0500 +++ b/downloads/management/commands/dlwgetcat.py Fri Aug 23 19:40:01 2013 -0500 @@ -7,7 +7,7 @@ from django.core.management.base import LabelCommand, CommandError from django.template.loader import render_to_string -from django.template.defaultfilters import slugify +from django.utils.text import slugify from django.contrib.sites.models import Site from django.conf import settings