Skip to content

Journal Database Settings

Andy Byers edited this page Sep 25, 2017 · 1 revision

Janeway stores settings for journals using the core.Setting model it maps to a core.SettingGroup and allows linking of core.SettingValues.

Setting Group

This is basically a name field that allows us to group settings together.

Setting

A container for a setting, there should only be one Setting object for each setting, the values are stored separately. Has:

  • a FK to SettingGroup
  • a name
  • a type (for rendering fields)
  • a pretty_name for display
  • an is_translatable boolean flag - if this is set to True, the setting can be translated into multiple languages

Setting Value

The setting value model is essentially a key:value pair between a setting object and a string value. Things become complex because SettingValue is a TranslatableModel. Janeway utilises (HVAD)[https://github.com/kristianoellegaard/django-hvad] for storing translatable objects.

Wiki has moved to read the docs.

Clone this wiki locally