Skip to content

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:
  • MUST contain name, callback (except for about)
  • May contain icon, image, callback
List of tabs displayed on profile page, called by ItemView of User (corresponds to profile view)

→ Next: Abstract models

I. Introduction

II. Tutorials

  1. Collections
    1. MagiModel
    2. MagiCollection
    3. MagiForm
    4. MagiFiltersForm
    5. MagiFields
  2. Single pages
  3. Configuring the navbar

III. References

IV. Utils

V. Advanced tutorials

VI. More

Clone this wiki locally