      OtherStory, ComplexSortedPerson, PluggableSearchPerson, Parent, Child, AdminOrderedField,
      AdminOrderedModelMethod, AdminOrderedAdminMethod, AdminOrderedCallable,
      Report, MainPrepopulated, RelatedPrepopulated, UnorderedObject,
      Simple, UndeletableObject, UnchangeableObject, Choice, ShortMessage,
      Telegram, Pizza, Topping, FilteredManager, City, Restaurant, Worker)
  from .admin import site, site2, CityAdmin
  
  
  ERROR_MESSAGE = "Please enter the correct username and password \
  for a staff account. Note that both fields may be case-sensitive."
 
</s> remove     EmptyModelVisible, EmptyModelMixin, State, City, Restaurant, Worker)
 </s> add     EmptyModelVisible, EmptyModelMixin, State, City, Restaurant, Worker,
    ParentWithDependentChildren, DependentChild) </s> remove                 new_object = self.model()
 </s> add                 new_object = form.instance </s> remove                 new_object = obj
 </s> add                 new_object = form.instance
    Telegram, Pizza, Topping, FilteredManager, City, Restaurant, Worker,
    ParentWithDependentChildren)
      OtherStory, ComplexSortedPerson, PluggableSearchPerson, Parent, Child, AdminOrderedField,
      AdminOrderedModelMethod, AdminOrderedAdminMethod, AdminOrderedCallable,
      Report, MainPrepopulated, RelatedPrepopulated, UnorderedObject,
      Simple, UndeletableObject, UnchangeableObject, Choice, ShortMessage,
    Telegram, Pizza, Topping, FilteredManager, City, Restaurant, Worker,
    ParentWithDependentChildren)
  from .admin import site, site2, CityAdmin
  
  
  ERROR_MESSAGE = "Please enter the correct username and password \
  for a staff account. Note that both fields may be case-sensitive."
keep keep keep keep replace keep keep keep keep keep
 Fixed #20522 - Allowed use of partially validated object in ModelAdmin.add_view formset validation.

Updated ModelAdmin to use form.instance when passing parent model to
child inlines for add_view. There is effectively no change in the
change_view since the previously passed 'obj' is the same as form.instance.

Thanks to meshy for report, and EvilDMP and timo for review. 
tests/admin_views/tests.py