Skip to content

GabLeRoux/django-multitable-inheritance

Repository files navigation

Django Model Inheritance - Multi-Table Inheritance Example

Build Status Requirements Status

As described in the following post Here's what happens when you use Multi Table Inheritance 🚀

See multitable/models.py for code snippet.

Model graph

Generated using the awesome django-extensions, you should really use this ✌️

pip install -r requirements
python manage.py migrate
python manage.py graph_models -a -g -I "*Ticket*" -o result/graph.png
python manage.py graph_models -a -g -I "*Ticket*" -o result/graph.svg

model graph

What you get in admin panel

python manage.py createsuperuser
python manage.py runserver

admin panel

admin

CustomerTicket

CustomerTicket

InternalTicket

InternalTicket

Ticket

Ticket

License

MIT © Gabriel Le Breton

About

💖django sample app to demonstrate model inheritance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages