Data model

Comics’ data model is quite simple:

  • The comics.core app consists of three models; Comic, Release, and Image.

  • The comics.accounts app adds a UserProfile which 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:

python graph_models \
  --output docs/_static/data_model.png \
  --group-models \
  core accounts