feat: Show ANs in admin view of user
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user