diff --git a/categories/templates/categories/_form.html b/categories/templates/categories/_form.html
index fa24560..513ed44 100644
--- a/categories/templates/categories/_form.html
+++ b/categories/templates/categories/_form.html
@@ -59,7 +59,7 @@
{% endif %}
{% endfor %}
-
-
+
+
+ {% include 'categories/_form.html' %}
+
-
-
-
-
-
{% endblock %}
\ No newline at end of file
diff --git a/categories/views.py b/categories/views.py
index 9f0ffc8..6690ee3 100644
--- a/categories/views.py
+++ b/categories/views.py
@@ -86,6 +86,8 @@ class CreateCategory(views.SuperuserRequiredMixin, HasRoleMixin, LogMixin, Creat
initial['description'] = category.description
initial['name'] = category.name
initial['visible'] = category.visible
+ initial['coordinators'] = category.coordinators.all()
+ print(category.coordinators.all())
self.log_action = 'replicate'
@@ -107,18 +109,6 @@ class CreateCategory(views.SuperuserRequiredMixin, HasRoleMixin, LogMixin, Creat
return context
-
- def get_form(self, form_class=None):
- """
- Returns an instance of the form to be used in this view.
- """
- #print(self.kwargs)
- if form_class is None:
- form_class = self.get_form_class()
-
-
- return form_class(**self.get_form_kwargs())
-
def form_valid(self, form):
self.object = form.save()
--
libgit2 0.21.2