Commit graph

435 commits

Author SHA1 Message Date
Martin Pépin
cb3df533c8 typo 2017-02-14 02:28:47 +01:00
Martin Pépin
49656c055c Updates the doc according to the last commit 2017-02-14 02:20:26 +01:00
Martin Pépin
be65f6536a Add a get_changelist_form hook in the ModelAdmin
This method is used in the `changelist_view` to get the changelist form.

You may want to override this method to get a different form depending
on the user that makes the request. For example:

  class MyConstanceAdmin(ConstanceAdmin):
      def get_changelist_form(self, request):
          if request.user.is_superuser:
              return SuperuserForm:
          else:
            return super(MyConstanceAdmin, self).get_changelist_form(request)
2017-02-14 02:15:39 +01:00
Camilo Nova
baab89f4ac Merge pull request #197 from ZenHeads/master
Fix create_perm in apps.py to use database alias given by the post_migrate signal
2017-02-07 10:03:09 -05: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
Camilo Nova
61d32d2f9e Merge pull request #196 from felixxm/issue-django2.0-stdout-bytes
Removed unnecessary `stdout` bytes encode.
2017-02-02 07:58:42 -05:00
Mariusz Felisiak
46b7a02365
Removed unnecessary bytes encode. 2017-01-31 18:08:04 +01:00
Camilo Nova
d008017fd0 Merge pull request #194 from felixxm/issue-django2.0-include-compatibility
Fixed Django 2.0 tests due to `django.conf.urls.include` behavior change. Removed pypy for Django 2.0 tests.
2017-01-31 08:37:30 -05: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
Camilo Nova
e16657567f Merge pull request #193 from felixxm/issue-bumped-django
Fixed travis configuration. Bumped Django versions.
2017-01-28 16:26:56 -05:00
Mariusz Felisiak
661b78da0b
Fixed travis configuration. Bumped Django versions. 2017-01-27 22:48:41 +01: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
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
Camilo Nova
8db90e8087 Bump version 2016-12-23 17:39:01 -05:00
Camilo Nova
563cfdb8ac Merge pull request #183 from rvernica/reset-default
Add "Reset to default" feature
2016-12-01 16:12:45 -05: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
Camilo Nova
7934de8ede Merge pull request #180 from jazzband/backport_cli_squashed
Backport command functonality from django-constance-cli (squashed)
2016-11-30 14:09:30 -05:00
Camilo Nova
c7c1fb3037 Merge pull request #179 from jazzband/additional_fields_fix
Additional fields fix
2016-11-30 14:08:13 -05: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
4599a22bfc Don't ignore additional fields when creating form
Fixes regression from 2f88a1bff2
2016-11-27 17:18:35 +13:00
John Carter
5d299f6222 Added test of form field types 2016-11-27 16:53:43 +13:00
John Carter
0e05de4f9b Added CONSTANCE_ADDITIONAL_FIELDS to example app 2016-11-27 16:44:33 +13:00
Camilo Nova
7221962b61 Merge pull request #177 from rvernica/patch-1
Preserve line breaks in default value
2016-11-24 08:59:03 -05:00
Rares Vernica
6ce7f1a308 Preserve line breaks in default value 2016-11-21 11:39:08 -08:00
Rares Vernica
8da8b4278c Add each_context to context and use dict syntax (#176) 2016-11-18 13:04:54 +01:00
Hamza Khchine
e634a624ec Fix broken link to django-redis (#175) 2016-11-17 17:22:15 +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
Jannis Leidel
c4f350e0f3 Merge pull request #174 from rvernica/patch-1
Fix typo in code example
2016-11-16 21:21:47 +01:00
Rares Vernica
d677ac2ec3 Fix typo in code example 2016-11-16 09:01:19 -08:00
Camilo Nova
68ff061ea6 Merge pull request #172 from miguelgr/master
Add app_config property to Config.Meta
2016-11-08 17:58:23 -05: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
Camilo Nova
b0ec956419 Merge pull request #170 from felixxm/issue-169
Fixed #169. Added localize to check modified flag.
2016-10-12 11:34:21 -05:00
Mariusz Felisiak
9709b211d5 Fixed #169. Added localize to check modified flag. 2016-10-10 23:00:35 +02:00
Camilo Nova
b0276aa42e Merge pull request #168 from felixxm/issue-162
Fixed #162. Made travis configuration more readable.
2016-10-05 16:37:46 -05:00
Mariusz Felisiak
ac394b1628 Fixed #162. Made travis configuration more readable. 2016-10-05 22:04:34 +02:00
Camilo Nova
7beecc90c5 Merge pull request #166 from Lumax-Rus/master
Fixed wrong sorting for config. Added sorting for config fieldset
2016-10-05 11:30:43 -05:00
Maxim Luzin
1e40db7fda Fix config ordering. 2016-10-01 18:07:40 +07:00
Camilo Nova
08c6222e4a Merge pull request #165 from jazzband/fix_example
Updated example app to django 1.8, added migrations
2016-09-26 17:30:34 -05:00
John Carter
870e3627bf default wsgi.py 2016-09-26 20:53:36 +13:00
John Carter
d5877bf2a6 removed cruft 2016-09-26 08:58:45 +13:00
John Carter
84aa49c698 Updated example app to django 1.8, added migrations 2016-09-25 22:05:44 +13:00
Camilo Nova
2c123af788 Bump version 2016-09-17 17:27:58 -05: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
826c494fd1 Bump version 2016-09-17 15:31:02 -05:00
Camilo Nova
56fb550044 Only set the attribute if value has changed 2016-09-17 15:18:29 -05:00