Commit graph

348 commits

Author SHA1 Message Date
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
6b04a3169e Bumped up version. 2015-10-01 18:20:14 +02: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
a005625f97 Bumped version. 2015-09-24 12:50:29 +02:00
Jannis Leidel
527bc0ca7e Updated Chinese translation. 2015-09-24 12:37:35 +02:00
Jannis Leidel
e41710616b Allow line breaks in config descriptions - Fix #95 2015-09-24 12:21:29 +02:00
Jannis Leidel
e1d27a6250 Merge remote-tracking branch 'chornsby/add-test-utils' 2015-09-24 11:59:55 +02:00
Jannis Leidel
b36aaf8fa6 More test fixes. 2015-09-24 11:56:19 +02:00
Jannis Leidel
19109b98bc Merge remote-tracking branch 'vinnyrose/compat_changes' 2015-09-24 11:02:45 +02:00
Jannis Leidel
f829ae543c Merge remote-tracking branch 'caktus/fixes_recent_djangos' 2015-09-24 10:45:14 +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
Dan Poirier
b44f5f5409 Some fixes for recent Djangos
* Add Django 1.8 to test environments in tox.ini
* Update python versions supported by Django master in tox.ini
* Don't load 'url' from template library 'future' - it is no longer
  available in Django master, and is not needed in Django 1.4 and later,
  which is as far back as django-constance tests
  * get_cache dropped from Django master
  * post_syncdb signal dropped
  * django.utils.importlib dropped

There are still errors on some environments that I didn't try to
address:

* coverage seems broken on py32
* django-master seems currently broken on py27 (non-ASCII character
somewhere,
I expect django-master will be fixed soon since they still claim py27
support)
* django14 seems broken: "NoReverseMatch: u"'admin" is not a registered
namespace"
2015-08-07 08:14:26 -04:00
Petr Dlouhý
12245b0f71 allow to override field config_type and set custom additional fields 2015-06-14 17:34:53 +02:00
Charlie Hornsby
3338d1c092 Implement override_config decorator for use in testing
Subclass django.test.utils.override_settings for similar pattern
Allow use as both TestCase decorator and context manager
Support Django versions 1.4 to 1.8
2015-06-02 21:18:19 +03:00
Curtis Maloney
353c6a30de Make 1.8 compatible 2015-05-27 13:23:28 +10:00
Igor Támara
f3604a3a73 master Added spanish translation 2015-01-15 16:39:04 -05:00
Jannis Leidel
8dfdc75334 Bumped version to 1.0.1. 2015-01-07 09:32:38 +01:00
Jannis Leidel
48704b9aa5 Try to fix #88 by being lazy a different way. 2015-01-06 12:24:58 +01:00
Jannis Leidel
d59e1c9c5f Use url tag from the future to fix rendering. 2014-12-04 18:20:00 -08:00
Jannis Leidel
880ece5cc1 1.0 \o/ 2014-12-04 17:24:51 -08:00
Jannis Leidel
2c03498d91 Fix minor cosmetic issue. 2014-12-04 16:45:24 -08:00
Jannis Leidel
d93dd7d2d9 Use breadcrumbs code from Django. 2014-12-04 16:38:50 -08:00
Jannis Leidel
13980f39a6 More laziness for preventing import time issues.
Fixes #84.
2014-12-04 10:37:10 -08:00
Jannis Leidel
7a6e0602d3 Use Django's own static template tag in the admin. 2014-12-04 10:36:29 -08:00
Jannis Leidel
cb2eacabc9 Pulled translations from Transifex. 2014-11-27 19:28:05 +01:00
Jannis Leidel
973963b70e Updated base translation message catalog. 2014-11-27 19:27:03 +01:00
Jannis Leidel
2cb825f3f6 Use better translated string. 2014-11-27 19:05:42 +01:00
Jannis Leidel
abd42df304 Minor cosmetic fix.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2014-11-27 17:53:12 +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
1f958dc443 Make the config object lazy for old Djangos.
This should prevent import time side effects from instantiating the config object directly there.
2014-11-25 22:46:58 +01:00
Jannis Leidel
1b3ffbc049 Updated packaging setup. 2014-11-25 22:22:04 +01:00
Jannis Leidel
94e3989b9b Be a good Python citizen and call super. 2014-11-25 22:20:18 +01:00
Jannis Leidel
fc930442a2 Simplified settings. 2014-11-25 22:20:06 +01:00
Jannis Leidel
cd05239626 Because computers. 2014-11-21 21:19:14 +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
6e2c4503e5 Moved South migrations out of the way and added Django migrations. 2014-11-21 20:21:17 +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
Jannis Leidel
8b0ed361d6 Added database cache autofill feature.
This refs #47 and #45.
2014-11-21 20:08:20 +01:00
Jannis Leidel
16bb8d50e6 Fix padding in admin table. 2014-11-21 19:46:15 +01:00
Jannis Leidel
51c25f5208 Fix an import error on Django master. 2014-11-21 17:48:40 +01:00
David Burke
6cca995b6b Merge branch 'patch-1' of git://github.com/LeaFin/django-constance into LeaFin-patch-1 2014-08-17 12:20:58 -04:00
Lin Xianyi
db43632907 Fixed AppRegistryNotReady exception on runserver on Django 1.7rc2. 2014-08-12 10:10:43 +08:00
David Burke
01c97eb019 Merge pull request #72 from wpj-cz/master
add Czech localization
2014-08-07 15:43:22 -04:00
vl
ecde8c7b11 Add translation to the app name 2014-08-07 13:15:22 +03:00
vl
789d71476a Fix one case 2014-08-07 12:03:32 +03:00
vl
243c9d35ba Russian translation 2014-08-07 11:56:19 +03:00
Petr Knap
cf3089463a add Czech localization 2014-07-14 11:24:06 +02:00
Leandra Finger
fe7c633e4c Update admin.py
Fixing Issue #70
2014-07-08 17:06:40 +02:00
Jonas
26742d06f2 Use app framework for initializing in Django 1.7 2014-05-23 10:02:34 +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
Jannis Leidel
68f1eabd4e Merge pull request #57 from morlandi/master
Localization in Italian
2014-04-01 13:28:56 +02:00
Jannis Leidel
f008769c63 Merge pull request #59 from flisky/py3-fix
fix basestring in python 3
2014-04-01 13:28:36 +02:00
Yin Jifeng
7e0db00429 add translation for zh_CN 2014-04-01 19:05:46 +08:00
Yin Jifeng
7d5a57e396 i18n verbose_name_plural for admin home page 2014-04-01 19:05:04 +08:00
Yin Jifeng
498d9f7b3e fix basestring in python 3 2014-04-01 13:35:40 +08:00
Mario Orlandi
1413571ed7 Localization in Italian 2014-02-12 07:07:55 +01:00
illumin-us-r3v0lution
cd3e84586d add admin ui support for constance keys as lists
fixes #54
2014-01-15 08:22:40 -05:00
Pierre-Olivier Marec
a72603800e Fixed discard cache on set value (key prefix was missing) 2013-12-16 17:24:16 +01:00
Jannis Leidel
e4bd353762 Merge pull request #39 from lmorchard/migration-key-fix
Migration tweak to fix a failure in switching column types for key
2013-09-10 02:46:53 -07:00
Kuba Zarzycki
987e13f1ae Model Meta object_name. Fix for 1.6 admin 2013-09-09 20:24:27 +02:00
Les Orchard
ae92c447ec Migration tweak to fix a failure in switching column types for key 2013-07-30 16:04:44 -04:00
Jannis Leidel
c06ce39c15 Added an own static template tag, sigh. 2013-04-12 18:12:55 +02:00
Jannis Leidel
2b7fec91b7 Don't use admin_static template tag library for 1.3.x. 2013-04-12 18:00:56 +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
36a9c23500 More py3k changes. 2013-04-12 17:34:48 +02:00
Jannis Leidel
89b423fa65 First stab at Python 3 support. 2013-04-12 17:25:11 +02:00
Bouke Haarsma
847ba5a060 Robust key fetching
Fixes #31
2013-03-19 11:38:37 +01:00
Jannis Leidel
94300eb026 Updated translation, added a English base translation. 2013-03-02 17:02:38 +01:00
Jannis Leidel
078cf11cd6 Use django-nose just to be a little less exotic. 2013-03-02 16:34:12 +01:00
Jannis Leidel
5c039e5744 Added South migration to make the key field an unique CharField. 2013-03-02 15:46:42 +01:00
Jannis Leidel
1e2e902061 Added initial South migration. 2013-03-02 15:44:19 +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
a8b158ad1c Fixed the prefix handling. 2013-02-21 19:33:12 +01:00
Jannis Leidel
e9d937be5a Added ability to prefix database values. Fixes #24. 2013-02-21 19:27:56 +01:00
Jannis Leidel
21344d9168 Added ability to specify the redis connection parameter as an URL. Fixes #26. 2013-02-21 19:00:26 +01:00
Jannis Leidel
c2c64f7d44 Add note about the new CONSTANCE_SUPERUSER_ONLY setting. 2013-02-21 18:51:21 +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
ea8e1eca3a add Polish translation 2012-09-03 02:36:47 +02: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
6dfbb7e462 remove unused import 2012-09-03 02:25:14 +02:00
Janusz Harkot
5e14b29466 django 1.4 compatibility 2012-09-03 02:11:13 +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
Jiri Barton
187262cdcf Merge branch 'master' of github.com:comoga/django-constance 2012-06-05 16:06:32 +02:00
Jiri Barton
0d0ab22e88 solved the unique key/index for the database backend 2012-06-05 16:05:14 +02:00
Jiri Barton
0d3d4014fa made compatible with Django 1.4 and Django dev 2012-06-05 16:04:45 +02:00
Florian Apolloner
88a479f7a4 allow translation of the help_text and add german translations. 2012-02-17 16:35:48 +01:00
Florian Apolloner
bcf2143703 Fix icon path for Django 1.4 2012-02-17 16:27:46 +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
Marcin Baran
647a8627c0 Fix DatabaseBackend clear 2011-09-21 22:18:05 +08:00
Marcin Baran
e8b13b0619 __dir__ in config.py now return list 2011-09-21 22:18:05 +08: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
Jiri Barton
482d8ff78b fixed a serious bug with the default values 2011-09-21 22:17:34 +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
Sławek Ehlert
d055821b59 fixed? problem with loads and None values 2011-03-11 12:03:28 +01: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
4e0a352b55 Re-added empty models.py. 2010-12-11 16:49:09 +01:00
Jannis Leidel
fa83c63e83 Removed stale file. 2010-12-11 16:47:14 +01:00
Jannis Leidel
3ef39d9185 Enabled database backend to properly require a cache backend that works in cross-process environments. This adds an optional setting CONSTANCE_DATABASE_CACHE_BACKEND. 2010-12-11 16:43:31 +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
240ef14015 Refactored prefix handling in redis backend slightly. 2010-12-11 16:32:03 +01:00
Jannis Leidel
d6e9521ffb Added __unicode__ to Constance model. 2010-12-03 20:36:56 +01:00
Jannis Leidel
b1c2847997 Renamed redis backend module to redisd to prevent import conflicts with redis-py. 2010-12-03 07:36:25 +01:00
Jannis Leidel
028dd17b93 Raise an ImproperlyConfigured exception if the Redis backend is used (default) and redis-py can't be found. 2010-12-01 19:29:58 +01:00
Jannis Leidel
82e19cec9f Refactored backend system slightly to have a nicer directory structure. Using the database backend now only requires to add 'constance.backends.database' to INSTALLED_APPS and setting CONSTANCE_BACKEND to 'constance.backends.database.DatabaseBackend'. Also reverted default backend to being the Redis backend. 2010-12-01 19:29:53 +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
e75e4e5201 Added constance.context_processors.config for easy access to the values. 2010-11-10 04:25:46 +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
c36bf65ab1 tests 2010-08-25 14:55:01 +02:00
Jiri Barton
f616fd82c7 added standalone test cases 2010-08-25 14:11:26 +02:00
Ales Zoulek
b307e06f86 Added basic tests 2010-08-25 13:32:42 +02:00
Ales Zoulek
d6c2094f70 improved admin UI (css, js) 2010-08-25 13:16:58 +02:00
Ales Zoulek
24296bfe32 fixed imports, optional django dependency 2010-08-24 11:40:58 +02:00
Ales Zoulek
fb016f2074 admin: improved UI 2010-08-23 18:49:33 +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
Jiri Barton
de72b28396 updated to work with pickle 2010-08-23 15:48:15 +02:00
Ales Zoulek
7f0e0b00e6 decode/encode values by pickle 2010-08-23 15:34:16 +02:00
Ales Zoulek
cfd63daddc merge 2010-08-23 14:50:32 +02:00
Ales Zoulek
d48285e89e added admin view interface 2010-08-23 14:49:54 +02:00
Jiri Barton
8771e43e69 changed the default attribute access 2010-08-23 14:45:36 +02:00
Ales Zoulek
b8bbbe3a65 fixed setattr on "rd" attribute 2010-08-23 13:34:04 +02:00
Ales Zoulek
58089aa123 implemented the core functionality 2010-08-23 13:06:52 +02:00
Ales Zoulek
688e2a2eb1 initial 2010-08-23 11:29:24 +02:00