Commit graph

338 commits

Author SHA1 Message Date
Kamil Gałuszka
51f850f04b chore: cleanup and add support for Python 3.9 2021-07-17 01:11:19 +02:00
blag
45b54a3402
Don't apply a default value if the value is already specified 2020-05-26 17:27:50 -07:00
blag
3443c300d0
Remove Python 3.6+ only code 2020-05-26 12:54:28 -07:00
blag
21cab41381
Use Python 3's urllib.parse.urlencode instead of django.utils.six 2020-05-26 12:15:12 -07:00
blag
899f92f53a
Return an HTTP 400 if the queryset size has changed since the page was loaded 2020-05-25 18:45:10 -07:00
blag
1b700e0b25
Use Python 3.6's ordered dictionaries 2020-05-25 18:45:10 -07:00
blag
a6fb5d0d36
Lock filtered objects before updating them in bulk 2020-05-25 18:45:10 -07:00
blag
00eb3fdb30
Pass the queryset filters from the request into the object_rep.html template 2020-05-25 18:45:09 -07:00
blag
247078c7e0
Tweak CSS to restrict elements that have cursor: move 2020-05-25 18:44:32 -07:00
blag
2bb6a677fe
Check that the parent model is a SortableMixin before enabling sorting them 2020-05-19 18:37:55 -07:00
Brandon Taylor
db162bf890 Fix inline admin templates to display FontAwesome icons and be Django 2 & 3 compatible.
Version bump to 2.2.3.
Updated READMEs.
2020-01-14 20:05:25 -05:00
Brandon Taylor
bee77a28db Version bump to 2.2.2
Updated READMEs
2020-01-14 18:55:54 -05:00
Brandon Taylor
723ddda6c2 FontAwesome Icons in Inline templates
- Fixed VERSION check to enable correct templates if VERSION > 2
2020-01-14 18:53:07 -05:00
Brandon Taylor
257e22fb8a Version bump to 2.2.1
Updated READMEs
2020-01-14 18:31:00 -05:00
Brandon Taylor
8311881f2f Fixed overzealous selector for sortable tabular inlines. 2020-01-14 18:26:49 -05:00
Brandon Taylor
99bf2fb5f2 Version bump to 2.2.0
Updated README.
Updated models to be compliant with Django 3.
2019-12-07 17:36:54 -05:00
Chris Tapper
01fc6a18b6 Remove deprecated template tag libraries.
`{% load staticfiles %}` and `{% load adminstatic %}` were
[deprecated in Django 2.1](https://docs.djangoproject.com/en/2.2/releases/2.1/#features-deprecated-in-2-1),
and [removed in Django 3.0](https://docs.djangoproject.com/en/dev/releases/3.0/#features-removed-in-3-0).

Instead, `{% load static %}` should be used.
2019-10-27 18:51:55 +01:00
Brandon Taylor
5cb0f1ebf8 Fix Font Awesome Icon selection scoping
- Narrowed scoping of selector so it doesn't interfere with custom widgets after drop
- Version bump to 2.0.18
- Updated README
2019-08-28 07:53:50 -04:00
Brandon Taylor
d22d4d174c Version bump to 2.1.17.
Updated README
2019-07-20 11:36:54 -04:00
Brandon Taylor
71bd1be135
Merge pull request #214 from SerhiyRomanov/ukrainian_translation
Fixed empty django.mo file for Ukrainian translation (sorry for this)
2019-07-17 16:44:48 -04:00
Serhiy Romanov
9def367234 Fixed empty django.mo file for Ukrainian translation (sorry for this) 2019-07-17 22:45:14 +03:00
Brandon Taylor
e069cc39c0 Version bump to 2.1.6
Updated readme with credit for Ukrainian translations.
2019-06-22 20:42:35 -04:00
Serhiy Romanov
f839d4d9fa Add Ukrainian translation 2019-06-22 00:04:10 +03:00
Brandon Taylor
14436afb6f Meged changes
Updated readme
Proper version bump to 2.1.15
2019-06-03 14:29:17 -04:00
Brandon Taylor
8fc4956adc Removed old .rst for README.
Updated README.md
Version bump to 2.1.11
Updated setup.py to support markdown for long description
2019-06-03 14:26:01 -04:00
Brandon Taylor
bfb1969e50 Removed unused imports 2019-06-03 14:13:21 -04:00
Brandon Taylor
97003cd5cc Added matching for PAGE_VAR 2019-04-17 11:24:43 -04:00
Brandon Taylor
debe9db327 Added matching for PAGE_VAR 2019-04-17 11:22:21 -04:00
Brandon Taylor
eff9872799 Version bump to 2.1.14
Updated readme
2019-02-23 07:59:00 -05:00
Stephan Jaekel
cdce5e453b Improve querystring filtering.
This changed excludes more querystring parameters and relies on Django's
knowledge of what keys should be excluded. It basically does the same
what the ChangeList class would do [1].

[1] https://github.com/django/django/blob/master/django/contrib/admin/views/main.py#L91-L102
2019-02-22 11:14:07 +01:00
Brandon Taylor
e2bee04990 Fix sorting for raw_id objects
- Added common function to get querystring filters
- Excluded querystring parameters used for raw_id fields
- Version bump to 2.1.13
- Updated readme
2019-02-21 09:56:08 -05:00
Brandon Taylor
26b11e8b41 Version bump to 2.1.12
Updates to readme
2019-02-14 16:07:35 -05:00
Brandon Taylor
478600fd5a - Appplied filters to queryset check for length of items in change list
- Added conditional in template to show/hide sort link
2019-02-14 16:04:17 -05:00
Brandon Taylor
1e395ab3f0 Properly handle querystring filters 2019-02-12 11:15:17 -05:00
Brandon Taylor
de393db7c4 Version bump to 2.1.11
Updated README.
2019-01-17 13:34:33 -05:00
Brandon Taylor
ff4dc3184f Fix Missing CSRF Token
- Set default CSRF_HEADER_NAME to previous value instead of Django default
- Added csrfmiddlewaretoken value to Ajax POST data from sorting views.
- Moved csrf token template tag inside object representation form
2019-01-17 13:32:02 -05:00
Brandon Taylor
c15f307e5a CSRF_HEADER_NAME
- Get CSRF_HEADER_NAME from settings to pass to jquery.django-csrf.html template
- Version bump to 2.1.10
- Update readme
2019-01-14 09:40:54 -05:00
Brandon Taylor
b1258afcea Version bump to 2.1.9
Updated readme.
Added filter_kwargs as a replacement to extra_filters.
2018-10-10 14:02:11 -04:00
Brandon Taylor
fabd78e5be Add Positional Arguments to Get Next/Previous
Added filter_args array argument to be passed to get_next/previous methods.
Added extra boolean fields to project model for testing.
2018-10-06 09:46:34 -04:00
Brandon Taylor
2688003ac9 Update Readme
Version bump to 2.1.8
2018-10-05 10:56:48 -04:00
Brandon Taylor
1ed27acbaa Fix Sort Link
Updated conditional to not add filter expression if a search has been performed on the queryset.
2018-10-05 10:53:56 -04:00
Brandon Taylor
6d5f9e97b4 Added after_sorting method to SortableAdminBase class that can be defined on a model admin to be executed after sorting has occurred. 2018-07-09 07:49:55 -04:00
Brandon Taylor
3f49a72a6d Version bump to 2.1.7.
Updated readme.
2018-06-29 08:27:11 -04:00
Brandon Taylor
e87a1444b4 Fixed import paths. 2018-06-29 08:23:22 -04:00
Brandon Taylor
612de9ea9d Updates to README.
Version bump to 2.1.6
2018-06-18 11:58:52 -04:00
Brandon Taylor
5ad2c0e4ec Merged after-sort-callback branch and fixed conflicts. 2018-06-18 11:41:20 -04:00
Brandon Taylor
e35f36b25a Refactored sorting JS files to be includes so that server-side variables may be passed to them.
Added 'after_sorting_js_callback_name' attribute to SortableAdminBase.
Added callback to be executed after sorting for each of the possible sorting scenarios.
Added custom template examples to add a callback to be executed when sorting is finished.
2018-06-18 11:40:24 -04:00
Brandon Taylor
4e0a3cc0ec Version bump to 2.1.5
Updated README(s).
Updated email address in AUTHORS.
2018-05-17 12:54:44 -04:00
timur-orudzhov
4add46c6de fix typo 2018-05-16 22:57:13 +03:00
timur-orudzhov
f135ad906d add support for django admin filters 2018-05-16 16:05:40 +03:00