diff --git a/django/core/management.py b/django/core/management.py index d22c0effca..c85e7f01c1 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -6,6 +6,10 @@ from django.core.exceptions import ImproperlyConfigured import os, re, sys, textwrap from optparse import OptionParser +#HACK: for Python2.3 +if not hasattr(__builtins__,'set'): + from sets import Set as set + MODULE_TEMPLATE = ''' {%% if perms.%(app)s.%(addperm)s or perms.%(app)s.%(changeperm)s %%} {%% if perms.%(app)s.%(changeperm)s %%}{%% endif %%}%(name)s{%% if perms.%(app)s.%(changeperm)s %%}{%% endif %%}