mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-17 23:14:11 +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
|
# Update submission_date to today
|
||||||
self.submission_date = timezone.now().date()
|
self.submission_date = timezone.now().date()
|
||||||
|
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
self._send_status_update_email(
|
self._send_status_update_email(
|
||||||
|
|
|
@ -47,11 +47,6 @@
|
||||||
>
|
>
|
||||||
<span class="usa-sr-only">Action</span>
|
<span class="usa-sr-only">Action</span>
|
||||||
</th>
|
</th>
|
||||||
{% comment %}
|
|
||||||
#1510
|
|
||||||
{% if has_deletable_applications %}
|
|
||||||
<th></th>
|
|
||||||
{% endif %} {% endcomment %}
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -42,7 +42,9 @@ def _get_applications(request):
|
||||||
# Let's exclude the approved applications since our
|
# Let's exclude the approved applications since our
|
||||||
# domain_applications context will be used to populate
|
# domain_applications context will be used to populate
|
||||||
# the active applications table
|
# 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
|
# Create a placeholder DraftDomain for each incomplete draft
|
||||||
valid_statuses = [DomainApplication.ApplicationStatus.STARTED, DomainApplication.ApplicationStatus.WITHDRAWN]
|
valid_statuses = [DomainApplication.ApplicationStatus.STARTED, DomainApplication.ApplicationStatus.WITHDRAWN]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue