mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
Change ordering to descending
This commit is contained in:
parent
947e476a71
commit
d9faf7478a
3 changed files with 3 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
||||||
{% extends "admin/fieldset.html" %}
|
{% extends "admin/fieldset.html" %}
|
||||||
{% load static url_helpers %}
|
{% load static url_helpers %}
|
||||||
{% load custom_filters %}
|
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
||||||
|
@ -81,7 +80,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for log_entry in original_object.history.all|reverse_list %}
|
{% for log_entry in original_object.history.all %}
|
||||||
{% for key, value in log_entry.changes_display_dict.items %}
|
{% for key, value in log_entry.changes_display_dict.items %}
|
||||||
{% if key == "status" %}
|
{% if key == "status" %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -67,8 +67,3 @@ def get_organization_long_name(generic_org_type):
|
||||||
@register.filter(name="has_permission")
|
@register.filter(name="has_permission")
|
||||||
def has_permission(user, permission):
|
def has_permission(user, permission):
|
||||||
return user.has_perm(permission)
|
return user.has_perm(permission)
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name="reverse_list")
|
|
||||||
def reverse_list(value):
|
|
||||||
return reversed(value)
|
|
||||||
|
|
|
@ -961,11 +961,11 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
|
|
||||||
# Define the expected sequence of status changes
|
# Define the expected sequence of status changes
|
||||||
expected_status_changes = [
|
expected_status_changes = [
|
||||||
"<td>Started</td>",
|
|
||||||
"<td>Submitted</td>",
|
|
||||||
"<td>In review</td>",
|
"<td>In review</td>",
|
||||||
"<td>Action needed</td>",
|
"<td>Action needed</td>",
|
||||||
"<td>In review</td>",
|
"<td>In review</td>",
|
||||||
|
"<td>Submitted</td>",
|
||||||
|
"<td>Started</td>",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Test for the order of status changes
|
# Test for the order of status changes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue