feat: Show ANs in admin view of user

This commit is contained in:
2024-11-12 17:19:30 +01:00
parent 3a6e7f5344
commit 8efc0aad21
2 changed files with 22 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ class User(AbstractUser):
def get_num_unread_notifications(self):
return BaseNotification.objects.filter(user=self, read=False).count()
@property
def adoption_notices(self):
return AdoptionNotice.objects.filter(owner=self)
@property
def owner(self):
return self