Skip to content

Commit

Permalink
Merge pull request #36 from johncronan/dev
Browse files Browse the repository at this point in the history
add form block bug fix; reviewpanel 0.8.5
  • Loading branch information
johncronan authored Jul 8, 2022
2 parents d93f290 + 4b4ba79 commit 94a41ec
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 512 deletions.
4 changes: 4 additions & 0 deletions formative/admin/formative.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,10 @@ class HiddenWithHandleInput(forms.HiddenInput):
else: kwargs['widgets'] = {'_rank': forms.HiddenInput}
return super().get_changelist_form(request, **kwargs)

def add_view(self, *args, **kwargs):
kwargs['extra_context'] = {'show_save_and_add_another': False}
return super().add_view(*args, **kwargs)

def change_view(self, *args, **kwargs):
# we still have the bulk action for delete - it redirects properly
kwargs['extra_context'] = {'show_delete': False,
Expand Down
Loading

0 comments on commit 94a41ec

Please sign in to comment.