diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index 4670bd94..f31e8494 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -50,7 +50,6 @@ def new_access_code(): class SiteInvite(models.Model): ''' 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) expiry = models.DateTimeField(blank=True, null=True) use_limit = models.IntegerField(blank=True, null=True) diff --git a/bookwyrm/views.py b/bookwyrm/views.py index fad71ccf..9a6461de 100644 --- a/bookwyrm/views.py +++ b/bookwyrm/views.py @@ -399,8 +399,7 @@ def manage_invites(request): ''' invite management page ''' data = { 'title': 'Invitations', - 'invites': models.SiteInvite.objects.filter( - user=request.user).order_by('-created_date'), + 'invites': models.SiteInvite.objects.filter(user=request.user), 'form': forms.CreateInviteForm(), } return TemplateResponse(request, 'manage_invites.html', data)