diff options
author | Ask Solem <askh@opera.com> | 2009-04-20 16:13:22 +0200 |
---|---|---|
committer | Ask Solem <askh@opera.com> | 2009-04-20 16:13:22 +0200 |
commit | 42808d28d4a9607793789633fc385cd7b8bc0cab (patch) | |
tree | a30c704ed7b2a5d3799cc76a982bb8d72efc7c87 | |
parent | 32a857e7ad9c2bc34b8d5bc5762c080fc845a74f (diff) | |
download | chishop-42808d28d4a9607793789633fc385cd7b8bc0cab.tar.bz2 chishop-42808d28d4a9607793789633fc385cd7b8bc0cab.tar.xz chishop-42808d28d4a9607793789633fc385cd7b8bc0cab.zip |
Forgot to import django.conf.settings in forms.
-rw-r--r-- | djangopypi/forms.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/djangopypi/forms.py b/djangopypi/forms.py index cc96179..51b1498 100644 --- a/djangopypi/forms.py +++ b/djangopypi/forms.py | |||
@@ -32,6 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. | |||
32 | 32 | ||
33 | import os | 33 | import os |
34 | from django import forms | 34 | from django import forms |
35 | from django.conf import settings | ||
35 | from djangopypi.models import Project, Classifier, Release | 36 | from djangopypi.models import Project, Classifier, Release |
36 | from django.utils.translation import ugettext_lazy as _ | 37 | from django.utils.translation import ugettext_lazy as _ |
37 | 38 | ||
@@ -39,12 +40,14 @@ from django.utils.translation import ugettext_lazy as _ | |||
39 | class PermissionDeniedError(Exception): | 40 | class PermissionDeniedError(Exception): |
40 | """The user did not have the privileges to execute an action.""" | 41 | """The user did not have the privileges to execute an action.""" |
41 | 42 | ||
43 | |||
42 | class AlreadyExistsError(Exception): | 44 | class AlreadyExistsError(Exception): |
43 | """Filename already exists.""" | 45 | """Filename already exists.""" |
44 | 46 | ||
45 | ALREADY_EXISTS_FMT = _("""A file named "%s" already exists for %s. To fix """ | 47 | ALREADY_EXISTS_FMT = _("""A file named "%s" already exists for %s. To fix """ |
46 | + "problems with that you should create a new release.") | 48 | + "problems with that you should create a new release.") |
47 | 49 | ||
50 | |||
48 | class ProjectRegisterForm(forms.Form): | 51 | class ProjectRegisterForm(forms.Form): |
49 | name = forms.CharField() | 52 | name = forms.CharField() |
50 | license = forms.CharField(required=False) | 53 | license = forms.CharField(required=False) |