# HG changeset patch # User Brian Neal # Date 1377304801 18000 # Node ID a75554eb6bae026eddb79fb939188edabea456de # Parent 161b568491145f8566b20a1a5d808cd2248f9a40 For Django 1.5: slugify is now available at django.utils.text. diff -r 161b56849114 -r a75554eb6bae downloads/admin.py --- 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): diff -r 161b56849114 -r a75554eb6bae downloads/management/commands/dlwgetcat.py --- 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