Rearrange source to src dir.
[redakcja.git] / src / wiki_img / forms.py
diff --git a/src/wiki_img/forms.py b/src/wiki_img/forms.py
new file mode 100644 (file)
index 0000000..555f264
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django import forms
+from django.utils.translation import ugettext_lazy as _
+from wiki.forms import DocumentTextSaveForm
+from catalogue.models import Image
+
+
+class ImageSaveForm(DocumentTextSaveForm):
+    """Form for saving document's text."""
+
+    stage_completed = forms.ModelChoiceField(
+        queryset=Image.tag_model.objects.all(),
+        required=False,
+        label=_(u"Completed"),
+        help_text=_(u"If you completed a life cycle stage, select it."),
+    )