shouldn't happen, as get_model will raise a LookupError if the app and/or model doesn't exist. It should probably be:
try:
model_class: type[SingletonModel] = apps.get_model(app_label, model_name)
except LookupError:
raise template.TemplateSyntaxError(
_(
"Could not get the model name '{model}' from the application named '{app}'"
).format(model=model_name, app=app_label)
)
return model_class.get_solo()
The following:
https://github.com/lazybird/django-solo/blob/e06af9a694ad04ff224354264818b6693a61de37/solo/templatetags/solo_tags.py#L20-L29
shouldn't happen, as
get_model
will raise aLookupError
if the app and/or model doesn't exist. It should probably be: