Improved error message for invalid admin config
@@ -165,7 +165,7 @@ class Meta:
def __init__(self, parts, apps, **kwargs):
# Validate apps params
for k in apps.keys():
- assert k in joined_app_name_and_model, joined_app_name_and_model
+ assert k in joined_app_name_and_model, f'{k} is not a valid app/model key.\n\nValid keys:\n ' + '\n '.join(joined_app_name_and_model)
def should_throw_away(k, v):
if isinstance(v, Namespace) and 'call_target' in v:
