Skip to content
Snippets Groups Projects
Commit bd476003 authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-247: Fixing linting error and test

parent 65d43815
No related branches found
No related tags found
1 merge request!318GREG-247: Make the org unit list sorted alphabetically in the admin interface
Pipeline #129526 passed
...@@ -129,7 +129,7 @@ class OrganizationalUnitAdmin(VersionAdmin): ...@@ -129,7 +129,7 @@ class OrganizationalUnitAdmin(VersionAdmin):
inlines = (OuIdentifierInline,) inlines = (OuIdentifierInline,)
# This is mainly to make the org unit list be sorted in the drop-down box # This is mainly to make the org unit list be sorted in the drop-down box
# in the role line under persons # in the role line under persons
ordering = ('name_nb',) ordering = ("name_nb",)
class OrganizationalUnitInline(admin.TabularInline): class OrganizationalUnitInline(admin.TabularInline):
......
...@@ -17,7 +17,7 @@ def test_org_repr(unit_foo): ...@@ -17,7 +17,7 @@ def test_org_repr(unit_foo):
@pytest.mark.django_db @pytest.mark.django_db
def test_org_str(unit_foo): def test_org_str(unit_foo):
assert str(unit_foo) == "foo_unit" assert str(unit_foo) == " (foo_unit)"
@pytest.mark.django_db @pytest.mark.django_db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment