Commit 2a9e1d49 authored by Remi Rampin's avatar Remi Rampin

Have a single default tag

parent baab460e
......@@ -471,26 +471,16 @@ msgstr ""
msgid "Password reset for Taguette"
msgstr ""
#. Default tag 1, name
#. Default tag name
#: taguette/web/views.py:375
msgid "interesting"
msgstr ""
#. Default tag 1, description
#. Default tag description
#: taguette/web/views.py:377
msgid "Further review required"
msgstr ""
#. Default tag 2, name
#: taguette/web/views.py:382
msgid "people"
msgstr ""
#. Default tag 2, description
#: taguette/web/views.py:384
msgid "Known people"
msgstr ""
#: taguette/validate.py:21
msgid "Project name cannot be empty"
msgstr ""
......
......@@ -368,21 +368,14 @@ class ProjectAdd(BaseHandler):
privileges=database.Privileges.ADMIN
)
self.db.add(membership)
# Add default set of tags
# Add default tags
self.db.add(database.Tag(
project=project,
# TRANSLATORS: Default tag 1, name
# TRANSLATORS: Default tag name
path=self.gettext("interesting"),
# TRANSLATORS: Default tag 1, description
# TRANSLATORS: Default tag description
description=self.gettext("Further review required")),
)
self.db.add(database.Tag(
project=project,
# TRANSLATORS: Default tag 2, name
path=self.gettext("people"),
# TRANSLATORS: Default tag 2, description
description=self.gettext("Known people")),
)
self.db.commit()
return self.redirect(self.reverse_url('project', project.id))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment