Fixed breaking bug in the admin for create/edit/delete
@@ -191,11 +191,11 @@ def crud(cls, request, operation, form, app_name, model_name, pk=None, call_targ
call_target__cls=cls.get_meta().form_class,
auto__instance=instance,
auto__model=model,
- call_target__attribute=type,
+ call_target__attribute=operation,
)
return call_target(
- **{f'parts__{type}_{app_name}_{model_name}': form},
+ **{f'parts__{operation}_{app_name}_{model_name}': form},
**kwargs,
)
