Black formatting

This commit is contained in:
zandercymatics 2023-12-27 09:31:52 -07:00
parent c01b241ea3
commit 7a534bb774
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 20 additions and 17 deletions

View file

@ -1,5 +1,6 @@
"""Permissions-related mixin classes."""
from typing import List
from django.contrib.auth.mixins import PermissionRequiredMixin
from registrar.models import (
@ -19,8 +20,9 @@ class OrderableFieldsMixin:
"""
Mixin to add multi-field ordering capabilities to a Django ModelAdmin on admin_order_field.
"""
custom_sort_name_prefix = "get_sortable_"
orderable_fk_fields = []
orderable_fk_fields: List[(str, List[str])] = []
def __new__(cls, *args, **kwargs):
"""
@ -101,6 +103,7 @@ class OrderableFieldsMixin:
Django should sort by when the column is clicked in the admin interface.
short_description: A string used as the column header in the admin interface. Will replace underscores with spaces.
"""
def method(obj):
"""
Template method for patterning.