Vladas Tamoshaitis
bd8041c55f
Allow override_config for pytest ( #338 )
...
* provides: base override class; unittest and pytest overrides
* raise invalid config error earlier
* update AUTHORS
* avoid AttributeError
* fix comment
* add tests
* fix tests, update docstring
* update docs, improve tests
* fix docs
* fix markdown
* refactor pytest override, use hidden fixture, refactor base and unittest classes
* improve docstring and error
* refactor pytest override to use hooks
* set minimum pytest version
* revert empty lines removal
* introduce pytest test runner for package, refactoring
* WIP
* Finalize tox config, refactor docs, add global fixture
* skip py35
* pytest command: remove unnecessary ignore
* address comments
* Update constance/test/pytest.py
* address comments
* add test for checking nested markers
Co-authored-by: Camilo Nova <camilo.nova@gmail.com>
Co-authored-by: Paweł Zarębski <ppjzarebski@gmail.com>
2020-04-04 11:38:22 -05:00
Ilya Chichak
4de4114bbd
Make groups of fieldsets collapsable. Fix #350 ( #351 )
...
* made results table responsive for Django 2 admin
* make fieldsets collapsable
* updated version via feature
* fixed codestyle according to requested changes
* made results table responsive for Django 2 admin
Co-authored-by: Camilo Nova <camilo.nova@axiacore.com>
2020-03-16 11:33:19 -05:00
Camilo Nova
5e91a92431
Allow concurrent calls to set() method ( #384 )
2020-03-05 18:04:55 -05:00
Yurchenko Sergey
8f20ca3111
command-to-delete-stale-records ( #355 )
...
* command-to-delete-stale-records
2020-01-27 14:24:32 -05:00
Alexandr Artemyev
590fa02eb3
Drop support py<3.5 django<2.2 ( #359 )
...
* Drop support py<3.5 django<2.2
* Remove admin_static
2019-12-23 16:20:41 -05:00
Alexandr Artemyev
e069ddb91a
Fix #341
2019-09-16 11:51:18 +03:00
Dmitriy Tatarkin
299b3b1996
Fixed "can't compare offset-naive and offset-aware datetimes" ( #337 )
...
* Fixed "can't compare offset-naive and offset-aware datetimes" when USE_TZ = True
* Fixed case when `USE_TZ = False`
2019-08-12 11:00:07 -05:00
Kirill Goncharov
1e751f1afa
Optimizations for database backend ( #329 )
...
* Add test for database backend with query count assertions
* Rewrite set() method of database backend to reduce number of queries
2019-06-08 09:14:58 -05:00
Richard Morrison
2948dff3cc
Add a Django system check... ( #326 )
...
* Add a Django system check that CONFIG_FIELDSETS accounts for all of CONFIG
* Fix test (don't actually modify values when submitting form) and restore python2 compatibility
2019-04-06 09:13:55 -05:00
John Carter
d6ed427c33
Drop Django<1.11 and 2.0, fix tests vs Django 2.2b ( #320 )
...
Also added py37, pypy3 to tox, travis
2019-03-11 17:20:08 -05:00
Mariusz Felisiak
fb2483ce8d
Fixed TestAdmin.test_linebreaks() due to linebreaksbr() behavior change on Django 2.1.
...
Changed in ff05de760c .
2018-03-31 18:32:46 +02:00
Camilo Nova
61356da3fb
Merge pull request #258 from ownaginatious/constance_dbs_setting
...
Workaround to make `django-constance` work in multi-DB project
2018-03-15 13:49:25 -05:00
Anton Shurashov
40188c093a
add config labels
2018-03-06 23:41:53 +03:00
Dillon Dixon
5763010f16
CONSTANCE_DBS setting for directing constance permissions/content_type settings to certian DBs only
2018-03-02 15:40:41 -08:00
Jannis Leidel
8b8b6569d9
Use original path to constance settings in admin tests.
2017-06-02 10:52:42 +02:00
Bruno Alla
1cce582edc
Fix #187 : Preserve sorting from fieldset config ( #207 )
2017-06-02 10:52:16 +02:00
Camilo Nova
4268ea808a
Merge pull request #213 from felixxm/cleanup-unused
...
Removed unused variables and imports.
2017-05-25 14:38:42 -05:00
Mariusz Felisiak
3af72e167b
Removed unused variables and imports.
2017-05-25 14:02:52 +02:00
Mariusz Felisiak
fc5a32f2ac
Fixed #211 -- Added datetime.timedelta support.
2017-05-25 13:50:27 +02:00
Mariusz Felisiak
9227d469eb
Removed deprecated TEMPLATE_CONTEXT_PROCESSORS setting. ( #206 )
2017-05-08 09:10:41 +02:00
Laszlo Ratsko
3ba4780a13
Fix create_perm in apps.py to use database alias given by the post_migrate signal
2017-02-05 13:27:07 +01:00
Mariusz Felisiak
46b7a02365
Removed unnecessary bytes encode.
2017-01-31 18:08:04 +01:00
Mariusz Felisiak
a691e9e97c
Fixed Django 2.0 tests due to django.conf.urls.include behavior change.
...
Removed pypy for Django 2.0 tests.
2017-01-29 15:08:52 +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
John Carter
e3ea904116
Backport command functonality from django-constance-cli (squashed)
2016-11-27 18:55:21 +13:00
John Carter
8941260617
Fix ChoiceField example - key should be None, not '-----'
2016-11-27 18:18:56 +13:00
John Carter
5d299f6222
Added test of form field types
2016-11-27 16:53:43 +13:00
Camilo Nova
b28385f501
Improved coding styles
2016-09-14 12:21:16 -05:00
prokaktus
54b6d55fd5
Fix backend initialization in tests
2016-06-13 04:00:17 +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
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
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
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ý
0e447ee3e2
add tests for custom additional fields
2015-06-14 17:34:53 +02:00
Charlie Hornsby
2bbffd5eec
Add test cases for override_config
...
Test usage of override_config in different forms
Ensure flexibility between decorator and context manager
2015-06-02 21:19:13 +03: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
Jannis Leidel
fc930442a2
Simplified settings.
2014-11-25 22:20:06 +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
8045678606
Test fixes to run on Django 1.7.
2014-11-21 16:37:12 +01:00
Jannis Leidel
9c975cbe58
Stop using setup.py for running the tests.
2014-11-21 14:48:52 +01:00
Jannis Leidel
4278f64ae1
Only use the external discover runner old Djangos.
2014-11-21 14:29:24 +01:00
Jannis Leidel
520d915527
Fixed import error.
2013-04-12 18:22:28 +02:00
Jannis Leidel
a64859e76b
Actually set STATIC_ROOT.
2013-04-12 18:20:04 +02:00
Jannis Leidel
25d0296c0d
Added some required settings.
2013-04-12 18:17:42 +02:00
Jannis Leidel
bc87847faa
Added forgotten staticfiles.
2013-04-12 18:04:01 +02:00
Jannis Leidel
15553c6244
More test fixes.
2013-04-12 17:53:54 +02:00
Jannis Leidel
36a9c23500
More py3k changes.
2013-04-12 17:34:48 +02:00