mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
PR suggestions
This commit is contained in:
parent
d41d8710c9
commit
d5099cd377
3 changed files with 3 additions and 7 deletions
|
@ -631,7 +631,6 @@ class DomainApplication(TimeStampedModel):
|
|||
|
||||
# Update submission_date to today
|
||||
self.submission_date = timezone.now().date()
|
||||
|
||||
self.save()
|
||||
|
||||
self._send_status_update_email(
|
||||
|
|
|
@ -47,11 +47,6 @@
|
|||
>
|
||||
<span class="usa-sr-only">Action</span>
|
||||
</th>
|
||||
{% comment %}
|
||||
#1510
|
||||
{% if has_deletable_applications %}
|
||||
<th></th>
|
||||
{% endif %} {% endcomment %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -42,7 +42,9 @@ def _get_applications(request):
|
|||
# Let's exclude the approved applications since our
|
||||
# domain_applications context will be used to populate
|
||||
# the active applications table
|
||||
applications = DomainApplication.objects.filter(creator=request.user).exclude(status="approved")
|
||||
applications = DomainApplication.objects.filter(creator=request.user).exclude(
|
||||
status=DomainApplication.ApplicationStatus.APPROVED
|
||||
)
|
||||
|
||||
# Create a placeholder DraftDomain for each incomplete draft
|
||||
valid_statuses = [DomainApplication.ApplicationStatus.STARTED, DomainApplication.ApplicationStatus.WITHDRAWN]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue