mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
Tidying up the admin interface by adding more verbose and helpful names to database fields as well as adding more help texts. The ObjectAdmin still gives tracebacks.
This commit is contained in:
parent
6ae1123421
commit
7f2e6dd4fa
11 changed files with 137 additions and 80 deletions
|
|
@ -42,15 +42,16 @@ class HelpEntry(SharedMemoryModel):
|
|||
# named same as the field, but withtout the db_* prefix.
|
||||
|
||||
# title of the help
|
||||
db_key = models.CharField(max_length=255, unique=True)
|
||||
db_key = models.CharField('help key', max_length=255, unique=True, help_text='Key to search for.')
|
||||
# help category
|
||||
db_help_category = models.CharField(max_length=255, default="General")
|
||||
db_help_category = models.CharField("help category", max_length=255, default="General",
|
||||
help_text='Organizes help entries in lists.')
|
||||
# the actual help entry text, in any formatting.
|
||||
db_entrytext = models.TextField(blank=True)
|
||||
db_entrytext = models.TextField('help entry', blank=True, help_text='The main body of help text.')
|
||||
# a string of permissionstrings, separated by commas.
|
||||
db_permissions = models.CharField(max_length=255, blank=True)
|
||||
db_permissions = models.CharField('permissions', max_length=255, blank=True)
|
||||
# lock string storage
|
||||
db_lock_storage = models.CharField(max_length=512, blank=True)
|
||||
db_lock_storage = models.CharField('locks', max_length=512, blank=True, help_text='Normally view:all().')
|
||||
# (deprecated, only here to allow MUX helpfile load (don't use otherwise)).
|
||||
# TODO: remove this when not needed anymore.
|
||||
db_staff_only = models.BooleanField(default=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue