mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Removed unused contrib.admin.utils.remove_trailing_data_field().
Unused since 8f30556329
.
This commit is contained in:
@@ -502,15 +502,6 @@ def get_fields_from_path(model, path):
|
||||
return fields
|
||||
|
||||
|
||||
def remove_trailing_data_field(fields):
|
||||
""" Discard trailing non-relation field if extant. """
|
||||
try:
|
||||
get_model_from_relation(fields[-1])
|
||||
except NotRelationField:
|
||||
fields = fields[:-1]
|
||||
return fields
|
||||
|
||||
|
||||
def construct_change_message(form, formsets, add):
|
||||
"""
|
||||
Construct a JSON structure describing changes from a changed object.
|
||||
|
Reference in New Issue
Block a user