aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <askh@opera.com>2009-04-20 16:13:22 +0200
committerAsk Solem <askh@opera.com>2009-04-20 16:13:22 +0200
commit42808d28d4a9607793789633fc385cd7b8bc0cab (patch)
treea30c704ed7b2a5d3799cc76a982bb8d72efc7c87
parent32a857e7ad9c2bc34b8d5bc5762c080fc845a74f (diff)
downloadchishop-42808d28d4a9607793789633fc385cd7b8bc0cab.tar.bz2
chishop-42808d28d4a9607793789633fc385cd7b8bc0cab.tar.xz
chishop-42808d28d4a9607793789633fc385cd7b8bc0cab.zip
Forgot to import django.conf.settings in forms.
-rw-r--r--djangopypi/forms.py3
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
33import os 33import os
34from django import forms 34from django import forms
35from django.conf import settings
35from djangopypi.models import Project, Classifier, Release 36from djangopypi.models import Project, Classifier, Release
36from django.utils.translation import ugettext_lazy as _ 37from django.utils.translation import ugettext_lazy as _
37 38
@@ -39,12 +40,14 @@ from django.utils.translation import ugettext_lazy as _
39class PermissionDeniedError(Exception): 40class 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
42class AlreadyExistsError(Exception): 44class AlreadyExistsError(Exception):
43 """Filename already exists.""" 45 """Filename already exists."""
44 46
45ALREADY_EXISTS_FMT = _("""A file named "%s" already exists for %s. To fix """ 47ALREADY_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
48class ProjectRegisterForm(forms.Form): 51class ProjectRegisterForm(forms.Form):
49 name = forms.CharField() 52 name = forms.CharField()
50 license = forms.CharField(required=False) 53 license = forms.CharField(required=False)