acdh-oeaw / apis-core

https://acdh-oeaw.github.io/apis-core/
MIT License
11 stars 3 forks source link

Exception: ('Could not find entity class of name:', 'Personinstitutionrelation') #329

Closed apis-sentry[bot] closed 2 years ago

apis-sentry[bot] commented 2 years ago

Sentry Issue: APIS-VIECPRO-2

Exception: ('Could not find entity class of name:', 'Personinstitutionrelation')
(7 additional frame(s) were not displayed)
...
  File "apis_import_project/views.py", line 991, in get_html_str
    form = get_custom_generic_entities_form(entity.title())
  File "apis_import_project/forms.py", line 120, in get_custom_generic_entities_form
    class CustomGenericEntitiesForm(forms.ModelForm):
  File "apis_import_project/forms.py", line 121, in CustomGenericEntitiesForm
    class Meta:
  File "apis_import_project/forms.py", line 122, in Meta
    model = AbstractEntity.get_entity_class_of_name(entity)
  File "apis_core/apis_entities/models.py", line 264, in get_entity_class_of_name
    raise Exception("Could not find entity class of name:", entity_name)
gregorpirgie commented 2 years ago

resolved with apis-import-project version 0.3.6