Contents:
- Also see: User roles and Event/Registration states in Concepts
- File: ../events/models.py
+-----------------+ +----------------------+
| User | m:n | Group |
| +-----+ |
| first_name | | • moderators |
| last_name | +----------------------+
| email |
| |
+-----------+ | ■ is_active |
| Level | | ■ is_staff |
| <--+ | ■ is_superuser | +----------------------+
| title | | +-+---------------+ | Event |
| order | | | 1:1 | |
+-----------+ | +-+---------------+ | title |
| | Person | | description |
+-----------+ +--+ | | date |
| Country | | ■ is_supervisor | | time_begin |
| <-----+ | | duration |
| name | | | | maximum_participants |
| | | | | project_numbers |
+-----------+ | | | |
| | | ■ leisure |
+-----------+ | | | ■ published |
| Unit <-----+ +-----+ ■ canceled |
| | +-+-^--+-+------^-+ m:n +---------^------------+
| title | | | | | | presenters |
| order | | | | | | |
+-----------+ | | | | | |
| | | | +-+-----------------+------------+
supervisor +-+ | | | Registration |
| | | |
m:n | | | ■ approvement_state |
representatives +-+ | ■ canceled |
+--------------------------------+
+---> ForeignKey
+---+ ManyToManyField, OneToOneField
■ BooleanField
• Instance
https://asciiflow.com/legacy/
Currently, the Person model has a One-To-One Link With the User model. This is based on:
- simple is better than complex: How to Extend Django User Model
- Django documentation - Customizing authentication in Django: Extending the existing User model
Another option for changes in the future is a custom user model