Abstract collections
deby edited this page Nov 4, 2021
·
6 revisions
↑ Parent: References
← Previous: Abstract models
BaseEventCollection
only works with a model made from BaseEvent
(with or without versions).
See Events for full details of how the generic event models work.
${PROJECT}/magicollections.py
:
from magi.abstract_collections import BaseEventCollection as _BaseEventCollection
class EventCollection(_BaseEventCollection):
queryset = models.Event.objects.all()
ℹ︎ See also: Events
→ Next: MagiForm settings
I. Introduction
II. Tutorials
III. References
- Files tree
- Default collections
- Default pages
- Website settings
- MagiCollection settings
- Abstract models
- Abstract collections
- MagiForm settings
- MagiFiltersForm settings
- Single pages settings
IV. Utils
-
MagiModel utils
- MagiModel images and files
- DateTime fields
- BaseAccount model
- Save choices values as integer rather than strings
- Store comma separated values
- Store dictionaries
- Store Markdown texts
- Translate fields values in multiple languages
- Store JSON
- More model field types
- Transform images before saving them
- Check choices at form level instead of model level
- Use an internal cache for foreign keys in models
- Customize views with MagiModel properties
- Events
- Form utils
- Python utils
- Templates utils
- Javascript utils
- Enable and disable existing collections and pages
- Translations
- Page titles and descriptions
- Characters
- Seasons
- Roles and permissions
- Allow your staff team to change configurations
- Custom users preferences and settings
- Background illustrations
- Activities tabs
- Corner popups
VI. More