Skip to content

Commit

Permalink
fix: rewrite error message
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw authored and b1rger committed Nov 20, 2023
1 parent 8a590f1 commit d560fe8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apis_core/apis_entities/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ class Meta:
for col in default_cols:
if not hasattr(model, col):
raise Exception(
f'Model for "{entity}" entity has no field "{col}".\n'
f'Check values in "table_fields" list in "entity_settings" '
f"(models.py or Settings file)."
f'APIS_ENTITIES "table_fields" setting for {entity} entity\n'
f'references "{col}" field, which model class does not possess.\n'
)

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit d560fe8

Please sign in to comment.