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
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
bfc09f9982
Revert "Only set the attribute if value has changed"
...
This reverts commit 56fb550044 .
2016-09-17 17:23:07 -05:00
Camilo Nova
56fb550044
Only set the attribute if value has changed
2016-09-17 15:18:29 -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
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
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
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
Petr Dlouhý
55ddbad52c
Merge remote-tracking branch 'jezdez/master' into custom_fields
2015-11-13 11:44:56 +01:00
Jannis Leidel
c82d76fc28
Fix #115 - stop shadowing the context processor's config variable when rendering the admin change list.
2015-10-01 18:16:39 +02:00
Jannis Leidel
b36aaf8fa6
More test fixes.
2015-09-24 11:56:19 +02:00
Mario Rosa
e1f9e52a08
Compatibility changes.
...
Drop python 2.6, 3.2
Drop Django 1.4, 1.5, 1.6
Remove models.py under constance and move to an appconfig imported file.
2015-08-25 08:14:01 -04:00
Petr Dlouhý
12245b0f71
allow to override field config_type and set custom additional fields
2015-06-14 17:34:53 +02:00
Jannis Leidel
48704b9aa5
Try to fix #88 by being lazy a different way.
2015-01-06 12:24:58 +01:00
Jannis Leidel
13980f39a6
More laziness for preventing import time issues.
...
Fixes #84 .
2014-12-04 10:37:10 -08:00
Jannis Leidel
2cb825f3f6
Use better translated string.
2014-11-27 19:05:42 +01:00
Jannis Leidel
52cbce7a08
Stop requiring six as a depdendency.
...
This is possible now that we require at least a version of Django that ships with six.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2014-11-27 17:53:01 +01:00
Bouke Haarsma
d0fc64bf1a
Hash settings to prevent overwriting of someone else's changes
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2014-11-27 17:51:12 +01:00
Jannis Leidel
ee0980a99f
Raise an exception if an unsupported config type is used.
...
This is in response to #54 and #66 .
2014-11-21 20:29:11 +01:00
Jannis Leidel
212dd67d18
Revert "add admin ui support for constance keys as lists"
...
This reverts commit cd3e84586d .
2014-11-21 20:24:16 +01:00
Jannis Leidel
69221ba2b4
Renamed config module to base to prevent ambiguity
...
This should fix #80 that is triggered by Django's new strickter import time loading process.
2014-11-21 20:16:39 +01:00
Leandra Finger
fe7c633e4c
Update admin.py
...
Fixing Issue #70
2014-07-08 17:06:40 +02:00
Jannis Leidel
72fb15495c
Merge pull request #55 from IDCubed/master
...
add admin ui support for constance keys as lists
2014-04-22 19:01:10 +02:00
Yin Jifeng
7d5a57e396
i18n verbose_name_plural for admin home page
2014-04-01 19:05:04 +08:00
illumin-us-r3v0lution
cd3e84586d
add admin ui support for constance keys as lists
...
fixes #54
2014-01-15 08:22:40 -05:00
Kuba Zarzycki
987e13f1ae
Model Meta object_name. Fix for 1.6 admin
2013-09-09 20:24:27 +02:00
Jannis Leidel
15553c6244
More test fixes.
2013-04-12 17:53:54 +02:00
Jannis Leidel
90da7981e5
Please the PEP8 gods.
2013-04-12 17:39:10 +02:00
Jannis Leidel
89b423fa65
First stab at Python 3 support.
2013-04-12 17:25:11 +02:00
Jannis Leidel
078cf11cd6
Use django-nose just to be a little less exotic.
2013-03-02 16:34:12 +01:00
Jannis Leidel
a622784d2d
Create fake change_config permission to be able to check for it if needed.
2013-03-02 15:43:27 +01:00
Jannis Leidel
00985ed40f
Merge pull request #17 from jerzyk/master
...
django 1.4 plus small extension to allow empty fields and optional non-superuser access to the settings
2013-02-21 09:44:47 -08:00
Jannis Leidel
455088e695
Merge branch 'master' of github.com:comoga/django-constance
2013-02-21 18:38:02 +01:00
trbs
5b827dc287
send message with level SUCCESS instead of INFO
2013-02-21 18:36:21 +01:00
Jannis Leidel
eeb5111cd6
Merge pull request #21 from qois/master
...
1.5 compat
2013-02-21 09:34:20 -08:00
mega
d53903cdcc
1.5 compatibility (meta.swapped)
2013-01-19 20:32:36 +04:00
Janusz Harkot
e7d4d5e860
option to allow non-superusers to update settings
2012-09-03 02:28:31 +02:00
Janusz Harkot
0def9aab18
django 1.4 depreciation
2012-09-03 02:27:32 +02:00
Janusz Harkot
5398c45c82
allow empty values
2012-09-03 01:59:49 +02:00
Alexander frenzel
e865ab8187
allow empty strings in admin
2012-06-13 13:22:31 +02:00
Florian Apolloner
88a479f7a4
allow translation of the help_text and add german translations.
2012-02-17 16:35:48 +01:00
Merijn Bertels
1bdb21fe38
update admin url for 1.4 (root_path)
2011-09-21 16:25:46 +02:00
Merijn Bertels
dc47149880
update admin url for 1.4
2011-09-21 16:24:15 +02:00
Jiri Barton
e3e44b6eef
streamlined ugettext
2011-09-21 22:17:56 +08:00
saw2th
5741e17425
fix psycopg2 "can't adapt" error on save of a config. value from the admin pages.
2011-09-21 22:17:35 +08:00
Merijn Bertels
fb43e0f4d7
Fix error: request into function
2011-06-29 15:25:10 +02:00
Merijn Bertels
46d88815e7
Change permission
...
Only Superuser can edit config settings
2011-06-29 15:17:27 +02:00
Roman Krejcik
0413497647
django 1.3 compatibility
2011-02-23 16:39:58 +01:00
Jannis Leidel
ada157c7df
Fixed a minor issues with redis-py insistence on a args as lists.
2010-12-11 22:42:41 +01:00
Jannis Leidel
1dd0a8b7c9
Added mget method to base backend to fetch all keys in one fell swoop, instead of one by one. Especially useful in the admin.
2010-12-11 16:38:40 +01:00
Jannis Leidel
eea0d2fdf9
Abstracted constance backends to and added a cached database backend. Moved around the settings code and simplified the module loading.
2010-12-01 00:20:23 +01:00
Ales Zoulek
723ef2cd91
fixed: time field instance of datetime.time
2010-11-12 15:43:56 +01:00
Jannis Leidel
1804b3ea6b
Fix bug regarding ordering.
2010-11-10 04:12:39 +01:00
Jannis Leidel
f0fb78f5c7
Updated template to fit original admin style and added helper variable to check if value differs from its default.
2010-11-10 04:12:07 +01:00
Jannis Leidel
44cc2be494
Marked a few strings for translation and localize the values passed to the changelist.
2010-11-10 04:11:34 +01:00
Jannis Leidel
9603e0573b
A few cleanups of the admin class.
2010-11-10 04:10:49 +01:00
Jannis Leidel
8f51e6cdc9
Added additional value types (unicode, date, time).
2010-11-10 04:09:06 +01:00
Jannis Leidel
d00029b3bd
Sorted imports a bit.
2010-11-10 04:07:53 +01:00
Jiri Barton
64a0e3c3e3
changed some display settings
2010-09-03 16:18:17 +02:00
Ales Zoulek
d6c2094f70
improved admin UI (css, js)
2010-08-25 13:16:58 +02:00
Ales Zoulek
c17bcec515
fixed: admin UI sorting keys
2010-08-23 17:23:38 +02:00
Ales Zoulek
d4ad6cdbf4
added support for dir() on config object
2010-08-23 17:10:44 +02:00
Ales Zoulek
a205d95b9e
admin: form saving and validating
2010-08-23 16:40:01 +02:00
Ales Zoulek
af362f539f
added admin form draft
2010-08-23 16:18:44 +02:00
Ales Zoulek
d48285e89e
added admin view interface
2010-08-23 14:49:54 +02:00