mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Keep invite settings in form after save
This commit is contained in:
parent
384187a263
commit
23fb5f62a2
1 changed files with 9 additions and 1 deletions
|
@ -46,7 +46,15 @@ class ManageInvites(View):
|
|||
invite.user = request.user
|
||||
invite.save()
|
||||
|
||||
return redirect('/settings/invites')
|
||||
paginated = Paginator(models.SiteInvite.objects.filter(
|
||||
user=request.user
|
||||
).order_by('-created_date'), PAGE_LENGTH)
|
||||
data = {
|
||||
'title': 'Invitations',
|
||||
'invites': paginated.page(1),
|
||||
'form': form
|
||||
}
|
||||
return TemplateResponse(request, 'settings/manage_invites.html', data)
|
||||
|
||||
|
||||
class Invite(View):
|
||||
|
|
Loading…
Reference in a new issue