-
Notifications
You must be signed in to change notification settings - Fork 11
Account collection settings
deby edited this page Nov 19, 2019
·
3 revisions
↑ Parent: MagiCollection settings
← Previous: MagiCollection settings in Edit view
You can override the following variables in account collection:
View | Name | Type | Description |
---|---|---|---|
List view | profile_default_ordering | String | Ordering of the accounts on profile. |
Add view | simpler_form | Form class | If you provide it, it will use it instead of the form_class by default and display an "Advanced" button to switch back to the full form. You can call get_account_simple_form in magi.forms to create a simpler form for you. Optional parameters: account_form_class=None, simple_fields=['nickname', 'level', 'friend_id']
|
You can override the following methods in account collection:
View | Name | Parameters | Return value | Description |
---|---|---|---|---|
None | get_profile_account_tabs | request, context, account | Ordered dict that:
|
List of tabs displayed on profile page, called by ItemView of User (corresponds to profile view) |
→ Next: Abstract models
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