mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
uv: make autofill available on edit page
This commit is contained in:
parent
419a48ac3a
commit
28bd6b8708
@ -294,7 +294,7 @@ class UVCreateView(CanCreateMixin, CreateView):
|
|||||||
|
|
||||||
model = UV
|
model = UV
|
||||||
form_class = UVForm
|
form_class = UVForm
|
||||||
template_name = "pedagogy/uv_create.jinja"
|
template_name = "pedagogy/uv_edit.jinja"
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
def get_form_kwargs(self):
|
||||||
kwargs = super(UVCreateView, self).get_form_kwargs()
|
kwargs = super(UVCreateView, self).get_form_kwargs()
|
||||||
@ -326,7 +326,7 @@ class UVUpdateView(CanEditPropMixin, UpdateView):
|
|||||||
model = UV
|
model = UV
|
||||||
form_class = UVForm
|
form_class = UVForm
|
||||||
pk_url_kwarg = "uv_id"
|
pk_url_kwarg = "uv_id"
|
||||||
template_name = "core/edit.jinja"
|
template_name = "pedagogy/uv_edit.jinja"
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
def get_form_kwargs(self):
|
||||||
kwargs = super(UVUpdateView, self).get_form_kwargs()
|
kwargs = super(UVUpdateView, self).get_form_kwargs()
|
||||||
|
Loading…
Reference in New Issue
Block a user