mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Bumped minimum isort version to 5.1.0.
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
This commit is contained in:
committed by
Mariusz Felisiak
parent
1173db4a16
commit
e74b3d724e
@@ -815,7 +815,7 @@ class BaseModelFormSet(BaseFormSet):
|
||||
|
||||
def add_fields(self, form, index):
|
||||
"""Add a hidden field for the object's primary key."""
|
||||
from django.db.models import AutoField, OneToOneField, ForeignKey
|
||||
from django.db.models import AutoField, ForeignKey, OneToOneField
|
||||
self._pk_field = pk = self.model._meta.pk
|
||||
# If a pk isn't editable, then it won't be on the form, so we need to
|
||||
# add it here so we can tell which object is which when we get the
|
||||
|
||||
Reference in New Issue
Block a user