Commit graph

195 commits

Author SHA1 Message Date
Camilo Nova
2fde4f4d83 Added the old value to the config_updated signal 2017-01-31 10:41:55 -05:00
Rares Vernica
bddb6cd2ac Fix *Reset to default* to work with boolean/checkboxes (#191)
* Fix *Reset to default* to work with boolean/checkboxes

* Add field name to each config value
* Check field name and use *checked* for checkbox and *value* otherwise

Fix #189

* Add and use raw_default and is_checkbox
2017-01-13 08:14:18 +01:00
John Carter
81b723c91b Fix handling of MultiValueField's (eg SplitDateTimeField) on the command line. Fixes #186 (#190)
* Added failing test for setting a datetime with cli

Issue #186

* Adding myself to AUTHORS

* Handle MultiValueField in manage command, resolves #186

* newline at end
2017-01-11 09:52:19 +01:00
Camilo Nova
8db90e8087 Bump version 2016-12-23 17:39:01 -05:00
Rares Vernica (cessna, fedora)
588ac2da71 Moved "Remove to default" unded field 2016-12-01 09:40:11 -08:00
Rares Vernica (cessna, fedora)
32c760cc1d Add "Reset to default" feature 2016-11-30 12:39:55 -08:00
John Carter
e3ea904116 Backport command functonality from django-constance-cli (squashed) 2016-11-27 18:55:21 +13:00
John Carter
4599a22bfc Don't ignore additional fields when creating form
Fixes regression from 2f88a1bff2
2016-11-27 17:18:35 +13:00
Rares Vernica
6ce7f1a308 Preserve line breaks in default value 2016-11-21 11:39:08 -08:00
Rares Vernica
8da8b4278c Add each_context to context and use dict syntax (#176) 2016-11-18 13:04:54 +01:00
Rares Vernica
70f1043bad Facilitate renaming Constance in Admin (#173)
* Load app_config dynamically and use verbose_name

* Instead of assuming the app config is always going to be ConstanceConfig, load it dynamically in case the user overrides it
* Use verbose_name for page title instead of static strings for create_list
* Use verbose_name for create_list breadcrumbs

These changes allows the user to easily rename "Constance" to something else in their project.

* Fix use of verbose_name in title and breadcrumbs
2016-11-17 08:42:55 +01:00
Miguel García
dd173cd42c Add app_config property to Config model 2016-10-27 18:27:37 +02:00
Camilo Nova
2f88a1bff2 Ignore fields in CONSTANCE_ADDITIONAL_FIELDS when casting a type 2016-10-12 16:59:56 -05:00
Camilo Nova
4fc8fdd3d0 Fix parameter ordering 2016-10-12 16:40:49 -05:00
Camilo Nova
bced16bfc7 Fixes #163 2016-10-12 16:09:18 -05:00
Mariusz Felisiak
9709b211d5 Fixed #169. Added localize to check modified flag. 2016-10-10 23:00:35 +02:00
Maxim Luzin
1e40db7fda Fix config ordering. 2016-10-01 18:07:40 +07:00
Camilo Nova
2c123af788 Bump version 2016-09-17 17:27:58 -05:00
Camilo Nova
bfc09f9982 Revert "Only set the attribute if value has changed"
This reverts commit 56fb550044.
2016-09-17 17:23:07 -05:00
Camilo Nova
826c494fd1 Bump version 2016-09-17 15:31:02 -05:00
Camilo Nova
56fb550044 Only set the attribute if value has changed 2016-09-17 15:18:29 -05:00
Camilo Nova
080f72f58d Bump version 2016-09-15 14:02:35 -05:00
Camilo Nova
0f049e4677 Merge pull request #159 from jazzband/signals
Moved the signal to its own file to avoid import errors. Fixes #158
2016-09-15 13:59:18 -05:00
Camilo Nova
5eeb77f9b0 Improved naming for arguments 2016-09-15 09:25:54 -05:00
Camilo Nova
bebc279edc Send the config parameter as sender for the signal 2016-09-15 09:24:30 -05:00
Camilo Nova
1830556c97 ☀️ Improve html layout when using fieldsets 2016-09-14 16:35:30 -05:00
Camilo Nova
1d746c080f Rename signal to config_updated 2016-09-14 14:53:52 -05:00
Camilo Nova
395efc992f ☀️ Moved the signal to its own file to avoid import errors 2016-09-14 14:50:39 -05:00
Camilo Nova
9d4d0ab334 Bump version 2016-09-14 12:44:59 -05:00
Camilo Nova
94fabdf7c3 Added signal on change, refs #158 2016-09-14 12:22:32 -05:00
Camilo Nova
90bf97c0a9 Improved coding styles 2016-09-14 12:21:43 -05:00
Camilo Nova
03704ee4f7 Improve coding style and remove django 1.7 compatibility 2016-09-14 11:52:58 -05:00
Ankush Chadda
7e20386682 ordering contance fields using OrderedDict 2016-09-10 16:11:36 +05:30
Camilo Nova
0b9a00099a Bump version 2016-09-01 18:41:27 -05:00
Farooq Azam
80d5fb5954 Added support for fieldsets. 2016-08-22 02:45:57 +05:00
Farooq Azam
a39a46e699 Used self.model instead Config to fix inheritance issues.
I tried to inherit the Config model and changed the app_label but it wasn't working because Config was hard-referenced here.
2016-08-21 21:40:17 +05:00
Jan Nakladal
e95f372b2f autofill cache if key si missing. 2016-07-12 16:31:11 +12:00
Maxim Filipenko
1b6730d2c5 Invalidate cache 2016-06-03 17:40:32 +03:00
Camilo Nova
c9d23c6d39 Fixes #141 2016-05-24 18:54:33 -05:00
Camilo Nova
8f71bca192 Bump version 2016-05-14 09:06:02 -05:00
jonzlin95
e2a4c6668b Fix setting name 2016-04-08 15:03:47 -07:00
jonzlin95
0aa1a7dd6a Use SplitDateTimeField due to DateTimeField + SplitDateTimeWidget deprecation 2016-04-05 15:44:12 -07:00
Emilio Ramirez
3524d3f210 is a good idea keep te constance at the begining of the variable name for avoid conflicts 2016-03-29 15:13:22 -03:00
John Carter
8101d7cc84 Make CONSTANCE_ADDITIONAL_FIELDS more flexible
Allow the field config to be a tuple, and allow the config dict to be omitted
2016-03-13 00:05:16 +13:00
Francesc Arpi
1b9458c74b Added CONSTANCE_IGNORE_ADMIN_VERSION_CHECK settings option to ignore the version protection. When you use django-constance on a cloud platform, with several machines, giving you problems by keeping the machine does not have to be the same which has served constant form. 2016-03-01 17:37:35 +01:00
Martin Pauly
ebdc1a6b9f Moved ConstanceForm to a property to make it exchangable by inheritance 2016-02-22 14:50:41 +01:00
Camilo Nova
d84f0283c8 Bump version 2016-02-08 07:55:33 -05:00
Camilo Nova
8121802f52 Merge pull request #123 from federicobond/svg-icons
Replace removed gif icons with svg versions
2016-02-08 07:45:29 -05:00
Federico Bond
1558a7c67e Replace removed gif icons with svg versions 2016-02-07 16:58:53 -03:00
Jürno Ader
201ba03762 Safer custom fields 2015-11-13 12:02:41 +01:00