      AdminOrderedField, AdminOrderedModelMethod, AdminOrderedAdminMethod,
      AdminOrderedCallable, Report, Color2, UnorderedObject, MainPrepopulated,
      RelatedPrepopulated, UndeletableObject, UnchangeableObject, UserMessenger, Simple, Choice,
      ShortMessage, Telegram, FilteredManager, EmptyModelHidden,
      EmptyModelVisible, EmptyModelMixin, State, City, Restaurant, Worker)
  
  
  def callable_year(dt_value):
      try:
          return dt_value.year
 
</s> remove     Telegram, Pizza, Topping, FilteredManager, City, Restaurant, Worker)
 </s> add     Telegram, Pizza, Topping, FilteredManager, City, Restaurant, Worker,
    ParentWithDependentChildren) </s> remove class AdminViewOnSiteTest(TestCase):
 </s> add class AdminViewOnSiteTests(TestCase):
    EmptyModelVisible, EmptyModelMixin, State, City, Restaurant, Worker,
    ParentWithDependentChildren, DependentChild)
      AdminOrderedField, AdminOrderedModelMethod, AdminOrderedAdminMethod,
      AdminOrderedCallable, Report, Color2, UnorderedObject, MainPrepopulated,
      RelatedPrepopulated, UndeletableObject, UnchangeableObject, UserMessenger, Simple, Choice,
      ShortMessage, Telegram, FilteredManager, EmptyModelHidden,
    EmptyModelVisible, EmptyModelMixin, State, City, Restaurant, Worker,
    ParentWithDependentChildren, DependentChild)
  
  
  def callable_year(dt_value):
      try:
          return dt_value.year
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/admin.py