mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
it's -> its
This commit is contained in:
parent
f758bdab5e
commit
487b92a13c
@ -714,7 +714,7 @@ class BaseInlineFormSet(BaseModelFormSet):
|
|||||||
# Remove the foreign key from the form's data
|
# Remove the foreign key from the form's data
|
||||||
form.data[form.add_prefix(self.fk.name)] = None
|
form.data[form.add_prefix(self.fk.name)] = None
|
||||||
|
|
||||||
# Set the fk value here so that the form can do it's validation.
|
# Set the fk value here so that the form can do its validation.
|
||||||
setattr(form.instance, self.fk.get_attname(), self.instance.pk)
|
setattr(form.instance, self.fk.get_attname(), self.instance.pk)
|
||||||
return form
|
return form
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user