Commit graph

55 commits

Author SHA1 Message Date
Justin Myers
93274106a2 Fix collapse in Django 5.1+ 2025-10-07 09:04:23 -07:00
Rotzbua
5f262fce9a
fix: django 5.1 removed collapse.js (#556) 2024-06-15 00:55:01 +05:00
Rotzbua
3eede068f4
fix: html5 does not allow self-closing tags
Seems like leftovers from xhtml.
2024-06-08 21:31:38 +02:00
dkr13
9c95294ed5
do not detect datetime fields as date type (#456)
Co-authored-by: Daniel Klein-Ridder <daniel@kleinridder.de>
2021-10-21 13:49:26 -05:00
M. Hosseyn Najafi
5d2bbb7092
Respect other classes added by admin templates (#417)
Fixes #365.
2020-11-18 11:11:35 -05:00
andrei-gypaetus
4e5573ed95
issue #404 prevent reset to default for file field (#413) 2020-07-04 16:45:48 -05:00
Pavel Torbeev
6b44a52933
Added a sticky footer (#407)
* Added a sticky footer.

* Returned the semantics to django
2020-06-10 14:21:49 +02:00
Alexandr Artemyev
788616d70c
Add anchors in admin (#402)
* Add anchors in admin

* Fix whitespace

* Add some css
2020-06-09 13:27:52 +02: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
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
Ilya Chichak
d495f1b3bf made results table responsive for Django 2 admin (#325) 2019-03-28 15:04:24 -05:00
Imran Iqbal
c9916c7e26 Improve consistency of reset value handling for date
* Consistent implementation re: `datetime`
* Consistent reset using `DATE_INPUT_FORMAT`, i.e.
  - Works whether `USE_L10N` setting is active or not
2018-05-07 17:55:43 +01:00
Dmitry Karamin
45da6edd28 fix(admin): date type 2018-04-16 21:41:18 +03:00
Camilo Nova
29f493f7c1 Merge branch 'file-upload' 2017-11-08 08:42:34 -05:00
Manatsawin Hanmongkolchai
bbc7db2edc Merge https://github.com/jazzband/django-constance 2017-11-07 21:45:04 +07:00
Manatsawin Hanmongkolchai
6015e9c360 results_list: Move inline JavaScript to constance.js
Merge branch 'default-datetime' of https://github.com/rvernica/django-constance
2017-11-07 21:43:47 +07:00
Camilo Nova
7da7598291
Merge pull request #222 from JoshLabs/vb_validation_fix
Fixed #201
2017-11-06 11:47:22 -05:00
Camilo Nova
23e8557c83 Added file uploads. Fixes #141 and #241 2017-11-06 11:31:00 -05:00
Manatsawin Hanmongkolchai
c8568b3f6b Moved inline css/javascripts out to their own files 2017-08-09 19:44:48 +07:00
Varun Bargali
d3da1e14bd added validation error for forgetting variables in CONSTANCE_CONFIG_FIELDSETS 2017-06-13 19:37:39 +05:30
Rares Vernica
0f7a6e8f55 Account for server timezone for Date object 2017-02-20 10:57:12 -08:00
Rares Vernica (cessna, fedora)
d308ccf601 Fix Reset to default for DateTime, #185 2017-01-19 10:55:48 -08: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
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
Rares Vernica
6ce7f1a308 Preserve line breaks in default value 2016-11-21 11:39:08 -08: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
Camilo Nova
1830556c97 ☀️ Improve html layout when using fieldsets 2016-09-14 16:35:30 -05:00
Farooq Azam
80d5fb5954 Added support for fieldsets. 2016-08-22 02:45:57 +05:00
Camilo Nova
c9d23c6d39 Fixes #141 2016-05-24 18:54: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
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
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
Jannis Leidel
d59e1c9c5f Use url tag from the future to fix rendering. 2014-12-04 18:20:00 -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
7a6e0602d3 Use Django's own static template tag in the admin. 2014-12-04 10:36:29 -08:00
Jannis Leidel
abd42df304 Minor cosmetic fix.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2014-11-27 17:53:12 +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
16bb8d50e6 Fix padding in admin table. 2014-11-21 19:46:15 +01: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
Janusz Harkot
5e14b29466 django 1.4 compatibility 2012-09-03 02:11:13 +02:00
Jiri Barton
187262cdcf Merge branch 'master' of github.com:comoga/django-constance 2012-06-05 16:06:32 +02:00
Jiri Barton
0d3d4014fa made compatible with Django 1.4 and Django dev 2012-06-05 16:04:45 +02:00
Florian Apolloner
bcf2143703 Fix icon path for Django 1.4 2012-02-17 16:27:46 +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