Data model
Comics’ data model is quite simple:
The
comics.coreapp consists of three models;Comic,Release, andImage.The
comics.accountsapp adds aUserProfilewhich add comic specific fields to Django’s user model, including a mapping from the user to her preferred comics.
Database migrations
Changes to the data model are managed using Django’s database migrations. If you need to change the models, please provide the needed migrations.
Updating diagram
The above data model diagram was generated using the Django app django-extensions and the following command:
uv run comics graph_models \
--output docs/_static/data_model.png \
--group-models \
core accounts