mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 10:07:04 +02:00
Fix url path bug
This commit is contained in:
parent
b5b2d69344
commit
eb3850458b
4 changed files with 55 additions and 6 deletions
|
@ -598,9 +598,11 @@ class DomainRequest(TimeStampedModel):
|
|||
|
||||
def get_first_status_set_date(self, status):
|
||||
"""Returns the date when the domain request was first set to the given status."""
|
||||
log_entry = LogEntry.objects.filter(
|
||||
content_type__model="domainrequest", object_pk=self.pk, changes__status__1=status
|
||||
).order_by("-timestamp").first()
|
||||
log_entry = (
|
||||
LogEntry.objects.filter(content_type__model="domainrequest", object_pk=self.pk, changes__status__1=status)
|
||||
.order_by("-timestamp")
|
||||
.first()
|
||||
)
|
||||
return log_entry.timestamp.date() if log_entry else None
|
||||
|
||||
def get_first_status_started_date(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue