mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-03 05:48:44 +00:00
Revert "Add created date and sorting to invites"
This reverts commit 11212401a0
.
This commit is contained in:
parent
11212401a0
commit
5864c9a6e7
2 changed files with 1 additions and 3 deletions
|
@ -50,7 +50,6 @@ def new_access_code():
|
||||||
|
|
||||||
class SiteInvite(models.Model):
|
class SiteInvite(models.Model):
|
||||||
''' gives someone access to create an account on the instance '''
|
''' gives someone access to create an account on the instance '''
|
||||||
created_date = models.DateTimeField(auto_now_add=True)
|
|
||||||
code = models.CharField(max_length=32, default=new_access_code)
|
code = models.CharField(max_length=32, default=new_access_code)
|
||||||
expiry = models.DateTimeField(blank=True, null=True)
|
expiry = models.DateTimeField(blank=True, null=True)
|
||||||
use_limit = models.IntegerField(blank=True, null=True)
|
use_limit = models.IntegerField(blank=True, null=True)
|
||||||
|
|
|
@ -399,8 +399,7 @@ def manage_invites(request):
|
||||||
''' invite management page '''
|
''' invite management page '''
|
||||||
data = {
|
data = {
|
||||||
'title': 'Invitations',
|
'title': 'Invitations',
|
||||||
'invites': models.SiteInvite.objects.filter(
|
'invites': models.SiteInvite.objects.filter(user=request.user),
|
||||||
user=request.user).order_by('-created_date'),
|
|
||||||
'form': forms.CreateInviteForm(),
|
'form': forms.CreateInviteForm(),
|
||||||
}
|
}
|
||||||
return TemplateResponse(request, 'manage_invites.html', data)
|
return TemplateResponse(request, 'manage_invites.html', data)
|
||||||
|
|
Loading…
Reference in a new issue