mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +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
|
||||
form_class = UVForm
|
||||
template_name = "pedagogy/uv_create.jinja"
|
||||
template_name = "pedagogy/uv_edit.jinja"
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super(UVCreateView, self).get_form_kwargs()
|
||||
@ -326,7 +326,7 @@ class UVUpdateView(CanEditPropMixin, UpdateView):
|
||||
model = UV
|
||||
form_class = UVForm
|
||||
pk_url_kwarg = "uv_id"
|
||||
template_name = "core/edit.jinja"
|
||||
template_name = "pedagogy/uv_edit.jinja"
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super(UVUpdateView, self).get_form_kwargs()
|
||||
|
Loading…
Reference in New Issue
Block a user