Commit graph

347 commits

Author SHA1 Message Date
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