mirror of
https://github.com/django/django.git
synced 2025-02-08 08:26:13 +00:00
Removed unused contrib.admin.utils.remove_trailing_data_field().
Unused since 8f30556329b64005d63b66859a74752a0b261315.
This commit is contained in:
parent
80f5a4d87a
commit
4ba206ca63
@ -502,15 +502,6 @@ def get_fields_from_path(model, path):
|
|||||||
return fields
|
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):
|
def construct_change_message(form, formsets, add):
|
||||||
"""
|
"""
|
||||||
Construct a JSON structure describing changes from a changed object.
|
Construct a JSON structure describing changes from a changed object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user