Skip to content
Snippets Groups Projects
Commit 3aaac7c8 authored by frekk's avatar frekk
Browse files

fix object not being gotten

parent f8529d3c
Branches
Tags
No related merge requests found
......@@ -39,8 +39,9 @@ class MyUpdateView(UpdateView):
sobj = super().get_object()
if (not sobj is None):
return sobj
finally:
return None
except:
pass
return None
def get_form_kwargs(self, **kwargs):
kwargs.update(super().get_form_kwargs())
......
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