feat: add warning when an is waiting for review
This commit is contained in:
@@ -502,6 +502,12 @@ class AdoptionNotice(models.Model):
|
||||
return False
|
||||
return self.adoptionnoticestatus.is_interested
|
||||
|
||||
@property
|
||||
def is_awaiting_action(self):
|
||||
if not hasattr(self, 'adoptionnoticestatus'):
|
||||
return False
|
||||
return self.adoptionnoticestatus.is_awaiting_action
|
||||
|
||||
@property
|
||||
def is_disabled_unchecked(self):
|
||||
if not hasattr(self, 'adoptionnoticestatus'):
|
||||
@@ -615,6 +621,10 @@ class AdoptionNoticeStatus(models.Model):
|
||||
def is_closed(self):
|
||||
return self.major_status == self.CLOSED
|
||||
|
||||
@property
|
||||
def is_awaiting_action(self):
|
||||
return self.major_status == self.AWAITING_ACTION
|
||||
|
||||
@property
|
||||
def is_interested(self):
|
||||
return self.major_status == self.ACTIVE and self.minor_status == "interested"
|
||||
|
Reference in New Issue
Block a user