Remove None fallback in get
This commit is contained in:
parent
d595d73417
commit
442b36055a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class UserMixin(LoginRequiredMixin):
|
|||
class NummiCreateView(UserMixin, CreateView):
|
||||
def form_valid(self, form):
|
||||
form.instance.user = self.request.user
|
||||
self.next = form.data.get("next", None)
|
||||
self.next = form.data.get("next")
|
||||
return super().form_valid(form)
|
||||
|
||||
def get_success_url(self):
|
||||
|
|
Loading…
Reference in a new issue