Skip to content

Commit e7853a1

Browse files
committed
Add make models
Lists existing models which is helpful for quickly understanding the existing app structure.
1 parent 8c2fac0 commit e7853a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ migrate: # Run migrations
6767
seed: # Load seed data
6868
poetry run ./manage.py loaddata clinics participants
6969

70+
models:
71+
poetry run ./manage.py shell -c "from django.apps import apps; print('\n'.join(f'{m._meta.app_label}.{m.__name__}' for m in apps.get_models()))"
72+
7073
_install-poetry:
7174
if ! command -v poetry >/dev/null 2>&1; then \
7275
pip install poetry; \

0 commit comments

Comments
 (0)