1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Merge pull request #119 from aavenel/fix-118

Fix 118
This commit is contained in:
Alexis Metaireau 2015-04-15 21:32:50 +02:00
commit 42dd9d54a8

View file

@ -88,7 +88,7 @@ class ProjectForm(EditProjectForm):
def validate_id(form, field): def validate_id(form, field):
form.id.data = slugify(field.data) 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 " raise ValidationError(Markup(_("The project identifier is used "
"to log in and for the URL of the project. " "to log in and for the URL of the project. "
"We tried to generate an identifier for you but a project " "We tried to generate an identifier for you but a project "