Skip to content

Releases: occipital/django-content-settings

0.13.1

19 May 20:37
Compare
Choose a tag to compare
  • SimpleExec.call_return and DjangoModelTemplateMixin.model_queryset can be callable now
  • mdsource for generation docs from the source code
  • black version was updated to use for Python 3.8

0.13

16 May 19:59
Compare
Choose a tag to compare
  • CONTENT_SETTINGS_TAGS refactoring, the function accepts additional argument name
  • "content_settings.tags.app_name" - autogenerate tag with the app name
  • new validators gen_call_validator, gen_args_call_validator and gen_kwargs_call_validator
  • AttributeError when you trying to use an uknown setting name

0.12

05 Mar 14:34
Compare
Choose a tag to compare
  • internal constants refactoring to Enums.
  • validation changes on the list view using content_settings_context
  • Admin: fix delete link

0.11.4 - conf.settings

29 Feb 14:12
Compare
Choose a tag to compare
  • new attributes on_change and on_change_commited
  • pass user object in the preview
  • from content_settings.conf import settings

0.11 - Preview on Site

24 Feb 20:28
Compare
Choose a tag to compare

Add preview on site middleware to be able to see the changes live, before applying those for all users.

0.10.1

20 Feb 21:28
Compare
Choose a tag to compare
  • help_text is alternative for help attribute
  • fix warnings
  • using urls is optional

0.10 - AdminPreviewActionsMixin

18 Feb 21:10
Compare
Choose a tag to compare
  • SplitByFirstLine is now in EachMixin
  • SplitByFirstLine.split_type can be a dict with key:cs_type
  • AdminPreviewActionsMixin
  • new attribute validators_raw

0.9 - Django Admin Panel

11 Feb 12:49
Compare
Choose a tag to compare
  • Fixing a lot of bugs with admin of content settings. Such as preivew, search, tags filters and cetera
  • fixing dynamic work with local changes in content settings
  • fix help text for user defined types
  • if variable constant or removed from code - admin is not allowed to see it in django admin
  • new type DjangoModelTemplateHTML
  • fix issue with \r\n in tags field for user defined types
  • remove attribute empty_is_none, we have EmptyNoneMixin mixin instead
  • validators can be tuple and list now
  • EachMixin now works only with expected types.
  • new class for EachMixin - each.Values - convers all values in the dict
  • fixing bugs with lazy object
  • for CallToPythonMixin, preview_validators and admin_preview_call are removed. Now, all of the validators, that are instance of call_validator will be shows in preview and settings call will be always shown if more than one validators are for preview
  • the change above requires massive refactoring for preview of template/call types
  • if SimpleCallTemplate doesn't have a required arguments and doesn't have validators - the system uses one validator call_validator()
  • DjangoTemplateHTML(HTMLMixin, DjangoTemplate) -> DjangoTemplateHTML(HTMLMixin, DjangoTemplateNoArgs)
    • SplitByFirstLine.split_key_validator_failed
  • fix preview for each.Keys

0.8 - EachMixin and HTMLMixin

06 Feb 22:19
Compare
Choose a tag to compare
  • EachMixin
  • HTMLMixin and DjangoTemplateHTML
  • showing type name(s) in admin panel
  • migrate can also show "adjust" in case of changing tags or/and help
  • yet another admin preview function refactoring.
  • fix quoting in text/python preview

0.7.1 - help format

31 Jan 11:50
Compare
Choose a tag to compare
  • Default preview for Exec and Eval is Python
  • SimpleBool more possible input options
  • help_format for SplitTranslation
  • test covarage: 95%