forked from mirrors/bookwyrm
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.user = request.user
|
||||||
invite.save()
|
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):
|
class Invite(View):
|
||||||
|
|
Loading…
Reference in a new issue