aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2015-04-15 21:32:50 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2015-04-15 21:32:50 +0200
commit42dd9d54a89b7ef8a015b20d8a979e835fa87b09 (patch)
tree6d9f80293b50067d4eb7aa2e5a87e1e3733fd68e /budget/forms.py
parentf8161b78728615c6c67a70985935ff7798921578 (diff)
parent4f4439eec9c13a0424b3dc33304feda8756c0116 (diff)
downloadihatemoney-mirror-42dd9d54a89b7ef8a015b20d8a979e835fa87b09.zip
ihatemoney-mirror-42dd9d54a89b7ef8a015b20d8a979e835fa87b09.tar.gz
ihatemoney-mirror-42dd9d54a89b7ef8a015b20d8a979e835fa87b09.tar.bz2
Merge pull request #119 from aavenel/fix-118
Fix 118
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 9b11085..2dde57d 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -88,7 +88,7 @@ class ProjectForm(EditProjectForm):
def validate_id(form, field):
form.id.data = slugify(field.data)
- if Project.query.get(form.id.data):
+ if (form.id.data == "dashboard") or Project.query.get(form.id.data):
raise ValidationError(Markup(_("The project identifier is used "
"to log in and for the URL of the project. "
"We tried to generate an identifier for you but a project "