evennia.web.admin.help¶
This defines how to edit help entries in Admin.
-
class
evennia.web.admin.help.
HelpTagInline
(parent_model, admin_site)[source]¶ Bases:
evennia.web.admin.tags.TagInline
-
model
¶ alias of
evennia.help.models.HelpEntry_db_tags
-
property
media
¶
-
-
class
evennia.web.admin.help.
HelpEntryForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm
Defines how to display the help entry
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
evennia.help.models.HelpEntry
-
fields
= '__all__'¶
-
-
base_fields
= {'db_entrytext': <django.forms.fields.CharField object>, 'db_help_category': <django.forms.fields.CharField object>, 'db_key': <django.forms.fields.CharField object>, 'db_lock_storage': <django.forms.fields.CharField object>, 'db_tags': <django.forms.models.ModelMultipleChoiceField object>}¶
-
declared_fields
= {'db_help_category': <django.forms.fields.CharField object>, 'db_lock_storage': <django.forms.fields.CharField object>}¶
-
property
media
¶ Return all media required to render the widgets on this form.
-
class
-
class
evennia.web.admin.help.
HelpEntryAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
Sets up the admin manaager for help entries
-
inlines
= [<class 'evennia.web.admin.help.HelpTagInline'>]¶
-
list_display
= ('id', 'db_key', 'db_help_category', 'db_lock_storage', 'db_date_created')¶
-
list_display_links
= ('id', 'db_key')¶
-
search_fields
= ['^db_key', 'db_entrytext']¶
-
ordering
= ['db_help_category', 'db_key']¶
-
list_filter
= ['db_help_category']¶
-
save_as
= True¶
-
save_on_top
= True¶
-
view_on_site
= False¶
-
form
¶ alias of
HelpEntryForm
-
fieldsets
= ((None, {'fields': (('db_key', 'db_help_category'), 'db_entrytext', 'db_lock_storage')}),)¶
-
property
media
¶
-