Brandon Taylor
1bf917da61
Bumped version to 1.5.4.
...
Replaced jQuery loaded from CDN with jQuery included with Django Admin.
Replaced jQuery UI from CDN with django.jQuery namespaced jQueryUI 1.8.11.
Implemented static includes using {% static %} template tag.
Removed documentation concerning override of sortable inlines whose parent doesn't inherit from sortable until a consistent workaround can be achieved.
Added CSRF protection for sort views.
2013-09-05 14:09:50 -04:00
Mathijs de Bruin
542f3fc1fc
Patch needed one more change.
2013-09-04 22:22:19 +02:00
Mathijs de Bruin
1bf1f96703
Remove CSRF exemption where it did not belong.
2013-09-04 22:15:28 +02:00
Mathijs de Bruin
53291d2fd7
Add CSRF tweak to admin template.
2013-09-04 22:14:32 +02:00
Mathijs de Bruin
7f043f588b
Added jQuery tool for doing proper CSRF with AJAX.
2013-09-04 21:57:04 +02:00
Brandon Taylor
2aab380f8a
Bumped version to 1.5.4
2013-08-22 12:18:09 -04:00
Andreas Hug
89629cd80f
Make inline hint translatable
2013-08-22 17:05:22 +02:00
Brandon Taylor
e22152ba81
Bumped version to 1.5.3
2013-07-19 08:36:06 -05:00
Marcelo Jorge Vieira
9d128ffc79
Removed executable permissions from many files
2013-07-18 22:45:22 -03:00
Brandon Taylor
83e275bd20
Merged pull request 44.
...
Updated README to include information about backward-incompatible changes in 1.5.2
2013-06-26 10:05:32 -04:00
Adam Gray
6f279b1b8e
Fix typo
2013-06-24 18:16:08 +01:00
Adam Gray
2354f345dd
Change STATIC_URL to use {% static %} tag
2013-06-24 18:13:36 +01:00
Brandon Taylor
b3fd59da02
Added an override for the admin add_view to prevent the change form template extends variable from not being populated.
2013-06-20 15:47:41 -04:00
Brandon Taylor
8a0a52eca7
Updated version to 1.5.
...
Updated README
2013-06-18 07:52:45 -04:00
Brandon Taylor
49865b4228
Merge pull request #42 from immensa/master
...
add trans - block title and block breadcrumbs in change_list.html
2013-06-09 10:43:14 -07:00
gladson
c4bedcd8cf
add trans block title and block breadcrumbs in change_list
2013-06-08 22:19:54 -07:00
Brandon Taylor
ea3e4948a0
Merged pull request for pt_BR locale and added south to requirements.txt
2013-05-20 21:17:29 -04:00
gladson
201cc27001
Add locale pt_BR
2013-05-20 13:31:57 -07:00
Brandon Taylor
274a79dcd1
Merged pull request #37 .
...
Updated version to 1.4.8.
Updated README.
2013-05-11 10:37:13 -04:00
Andrii Kostenko
bb6c625f62
Python 3 support
2013-05-11 15:18:01 +03:00
Brandon Taylor
8bcf2bfb2e
Fixed check for sortable inline models which prevented JavaScript from loading correctly.
2013-05-07 09:22:40 -04:00
Brandon Taylor
6f2e667e6c
Updated version to 1.4.7.
...
Updated README with JavaScript fixes.
2013-05-04 15:03:30 -04:00
Brandon Taylor
7f3bbbed4c
Updated jQuery to 1.9.1 and jQueryUI to 1.10.2.
...
Added create function handler to unbind events from sortable that were being applied to checkboxes within a sortable item. This was preventing the delete checkbox for inline models from being checked.
Updated JavaScript inlcudes to not include unnecessary files.
2013-05-04 15:00:23 -04:00
Brandon Taylor
a49bb81e1b
Added index error exception handling.
2013-05-03 08:54:02 -04:00
Brandon Taylor
52b9dc693d
Updated version to 1.4.6.
...
Updated README.
2013-05-03 08:52:54 -04:00
Brandon Taylor
847b471872
Added properties to allow sortable change list and change form view to extend a custom template or extend the default admin change form and change list templates.
...
Fixed a problem with the detection of sortability of inline models at the template level that was preventing the drag-and-drop messaging in the template to be displayed.
Updated unit tests.
2013-05-03 08:35:17 -04:00
Brandon Taylor
32c6f7c034
Fixed unicode support for title context variable in sort view.
...
Updated version to 1.4.5.1
Updated README.
2013-04-30 08:36:46 -04:00
Brandon Taylor
014f6d1660
Added support for queryset() overrides on admin classes and inline admin classes.
...
Updated version to 1.4.5.
Updated README with explanation of requirements for overriding queryset() on inline models.
Added extra models to sample project to demonstrate sortable models with custom querysets.
Improved JavaScript of sortables to be more efficient with better comparison checking.
Fixed highlighting of stacked inlines on sort finish.
2013-04-27 22:58:02 -04:00
Brandon Taylor
b6e68fa367
Removed url template tags and put in relative paths for sorting urls for Django <= 1.4.x and Django 1.5.x compatibility.
2013-04-27 13:10:53 -04:00
Brandon Taylor
373197553e
Reverted changes that added get_sort_url template tag, as this caused an exception error with inlines.
2013-04-26 13:30:42 -04:00
Brandon Taylor
661f417a7b
Merged pull request from kynazz to add support for unicode in sort view title.
...
Updated readme and version.
2013-04-23 08:05:40 -04:00
Smirnov Evgenii
b4a9dfe406
change version to 1.4.2
2013-04-23 11:16:58 +04:00
Smirnov Evgenii
c6e5f9e68e
fix unicode verbose_name view in administration
2013-04-23 10:55:25 +04:00
Brandon Taylor
ece9876a47
Minor PEP8 improvements.
...
Updated version to 1.4.1.
Updated README.
2013-03-15 07:31:14 -04:00
intelliadmin
279477da7b
added generic inlines support
2013-03-15 10:10:01 +01:00
Brandon Taylor
a54e81434f
Minor modifications for Django 1.5.x and 1.4.x backward-compatibility.
...
Added new sample project.
Improved documentation.
Refactored CSS selector for inlines that are sortable.
2013-03-10 20:53:05 -04:00
Brandon Taylor
cffbd8534e
Working on updating documentation and sample project
2013-02-28 22:07:16 -05:00
Brandon Taylor
8662ebae88
Merged changes from return1-django-v1.5 master
2013-02-28 21:52:07 -05:00
Brandon Taylor
1bf768bf02
Updated version to 1.3.9
2013-01-06 20:40:00 -05:00
Brandon Taylor
c7230002e8
Updated readme.
...
Added jquery.effects.core.js back to static files.
2013-01-06 20:39:05 -05:00
Brandon Taylor
0ae9b5819d
Updated documentation to include gotchas for existing models
2012-12-25 22:10:26 -05:00
Celso Pinto
fed05de9ad
Update adminsortable/templatetags/django_template_additions.py
...
Added support for django 1.3
2012-11-24 20:06:34 +00:00
Brandon Taylor
1614e77b75
Updated readme and version
2012-11-19 00:10:40 -05:00
Ionel Maries Cristian
d6efa21939
Disable ordering on .add-row.
2012-11-18 15:56:01 +02:00
Ionel Maries Cristian
5ef23ebca7
Fix wrong name for css file.
2012-11-18 15:36:24 +02:00
Brandon Taylor
e206dfc30c
Fixed application of CSS class 'sortable' to stacked inline elements that are sortable which was somehow excluded from the previous release.
2012-11-02 13:49:30 -04:00
Brandon Taylor
9145da6a23
Updated version to 1.3.6, which also somehow didn't make it into the previous release
2012-11-02 13:38:19 -04:00
Brandon Taylor
a66757d728
Fixed the changed to the get_do_sorting_url template tag that somehow didn't make it into the previous release.
2012-11-02 13:33:55 -04:00
Brandon Taylor
810f8a0dd4
Fixed the inline stacked sortable template by passing in the original object rather than passing in the model type id of the original object.
...
Various PEP8 enhancements.
2012-11-02 09:04:32 -04:00
Brandon Taylor
c9a20b0838
Updated version to 1.3.5
2012-09-30 21:43:04 -04:00
Brandon Taylor
13af5f8142
Fixed exception handling in 'is_sortable' classmethod
2012-09-30 21:41:17 -04:00
Brandon Taylor
04bdb80637
Removed individual jQueryUI JavaScript files in favor of loading jQueryUI from Google Ajax API.
...
Updated jQuery to latest version from Google Ajax API.
Integrated pull-request from BlindHunter to add the ability to override templates on a per-model basis.
Updated README.
2012-09-25 10:52:31 -04:00
Alexander A. Sosnovskiy
1c2964c566
Unable to sort in more than one application in project - fixed.
2012-09-24 15:12:07 +03:00
Alexander A. Sosnovskiy
22cd63a4ba
It was impossible to override sortable_javascript_includes_template. Fixed.
2012-09-24 12:16:20 +03:00
Alexander A. Sosnovskiy
dfbe590767
Templates can be overriden now.
2012-09-23 21:37:58 +03:00
Brandon Taylor
866adffd7b
Updated CSS classing of sortable inline and stacked items.
...
Concatenated classing of sortable inlines into one stylesheet.
Updated version to 1.3.3
Updated README
2012-07-09 11:05:59 -04:00
Brandon Taylor
484f00d263
Updated version to 1.3.2.
...
Updated status to stable/production.
Added AttributeError exception handling for models that specify a SortableForeignKey that does not inherit from Sortable.
Added template support for nested objects that are sortable by a foreign key, where the foreign key is not sortable.
2012-06-07 09:38:36 -04:00
Brandon Taylor
7a000f1724
Fixed version in __init__
2012-04-23 23:18:37 -05:00
Brandon Taylor
98320aefe9
Incremented version to 1.3.1
2012-04-23 23:13:35 -05:00
Dominique Lederer
4ed0db3304
fixed a typo, regenerated language files
2012-03-15 10:12:28 +01:00
Dominique Lederer
1b98d00a30
removing obsolete css file references (404)
2012-03-15 10:08:06 +01:00
Dominique Lederer
fef90e6d0c
make adminsortable work with descending ordering
2012-03-15 09:58:52 +01:00
Dominique Lederer
cbbcf901fc
remove root_path, which produces an error on django 1.4 and also is not used in the template
2012-03-15 09:39:55 +01:00
Brandon Taylor
49b7d7d0e3
Added south field triple to SortableForeignKey field
2012-03-07 21:52:57 -06:00
Brandon Taylor
09f86f83bb
Fixed IndexError
2012-02-24 22:56:47 -06:00
Brandon Taylor
37f91cce97
Added SortableForeignKey field to replace `sortable_by` model property.
...
Refactored how the sortable_by properties get populated by looping over the model fields until we get to the SortableForeignKey, then grabbing properties from the field and its related data.
2012-02-24 22:35:30 -06:00
unknown
fd43051c36
Fixed version tuple.
2011-11-23 08:56:01 -06:00
Brandon Taylor
b16def5c09
Merged changes from sortable-by-refactor.
...
Incremented version to 1.2.
Refactored ORM calls to properly order objects by the sortable_by property to ensure objects are grouped correctly in the sortable change list template after being passed through dynamic_regroup.
Fixed missing import for jquery.effects.core, again.
Refactored sortable_by classmethod into a property.
2011-11-22 22:27:20 -06:00
Brandon Taylor
789f22b69b
Merge branch 'sortable-by-refactor'
2011-11-22 22:25:45 -06:00
Brandon Taylor
63a80f5953
Incremented version to 1.2.
...
Refactored ORM calls to properly order objects by the sortable_by property to ensure objects are grouped correctly in the sortable change list template after being passed through dynamic_regroup.
Fixed missing import for jquery.effects.core, again.
Refactored sortable_by classmethod into a property.
2011-11-22 22:19:39 -06:00
Brandon Taylor
fe01094ac6
Merge branch 'master' of github.com:btaylordesign/django-admin-sortable
2011-11-22 21:00:19 -06:00
Brandon Taylor
fd06064d48
Mode switches.
2011-11-22 20:58:09 -06:00
unknown
1b9c5c0a64
Refactored sortable_by into a property instead of a classmethod.
...
Added backwards compatibility for pre 1.1.1 versions that still have sortable_by defined as a classmethod.
Need to address dynamic regroup template tag to see why categories are not being grouped properly in sample app.
2011-11-22 20:42:36 -06:00
Brandon Taylor
fba568399c
Eliminated setting of self.order to 1 if Max returns None, as order has a default value of 1 defined in the field.
2011-11-16 20:50:12 -06:00
Brandon Taylor
7a242dd41c
Refactored classmethods to use aggregation Max instead order_by.
2011-11-16 20:24:33 -06:00
Brandon Taylor
30c19c257a
Incremented version to 1.1.1
2011-11-16 00:50:18 -06:00
Brandon Taylor
8365043e0e
Modified classmethod queries that determine if a Model is sortable to only retieve one record and not use count.
...
Fixed jQueryUI highlight method call in success handler of ajax function when dragging stops.
Fixed missing script resource for jquery.effects.core.js
2011-11-16 00:48:14 -06:00
Brandon Taylor
638f26df27
Updated version to 1.1.0
2011-10-04 12:36:31 -05:00
Brandon Taylor
1117941f91
Added KeyError handling on do_sorting_view
2011-10-04 12:01:06 -05:00
Brandon Taylor
8e23b98e6a
Merge branch 'master' of github.com:btaylordesign/django-admin-sortable
2011-09-24 11:22:23 -05:00
Brandon Taylor
5cfae6f40b
Updated version to 1.0.9
2011-09-24 11:21:57 -05:00
Jaap Roes
3bc05b0fa5
Back link now returns to change list
2011-09-22 15:54:29 +02:00
Jaap Roes
def6b940f2
Added i18n files and Dutch translations, also included locale directory in MANIFEST file
2011-09-22 15:53:10 +02:00
Jaap Roes
612ab190cf
Made new template strings translateable
2011-09-22 15:52:19 +02:00
Jaap Roes
00bcdc754a
Call block.super for extrahead/extrastyles blocks
2011-09-22 15:23:01 +02:00
Brandon Taylor
cbd612d128
Updated version to 1.0.8
...
Updated README and COPYRIGHT
2011-09-17 17:47:06 -05:00
Brandon Taylor
e214dcd067
Moved jQuery import back to Google CDN.
2011-09-17 17:35:08 -05:00
Brandon Taylor
3aa8b1983f
Merge branch 'master' of github.com:btaylordesign/django-admin-sortable
2011-09-17 16:48:23 -05:00
Brandon Taylor
e1311fc6f5
Added support for non-numeric primary keys
2011-09-17 16:48:14 -05:00
Brandon Taylor
8db3ad417b
Removed print statement in template tag.
...
Increased version to 1.0.7
2011-09-14 23:07:24 -05:00
Brandon Taylor
31f28d5b50
Removed all .pyc files
2011-09-14 09:17:31 -05:00
Brandon Taylor
1c6a0acc7e
Added *.pyc and *.pyo to .gitignore
2011-09-14 09:16:49 -05:00
Brandon Taylor
d91f9fb420
Changed version to 1.0.6
2011-09-14 09:13:02 -05:00
Brandon Taylor
7159b7709a
Added manifest to include static and templates directories in distro and also exclude the sample project from the installed source.
...
Fixes Github issue #1
2011-09-14 09:06:50 -05:00
Brandon Taylor
9fadb30670
Updated version to 1.0.5
2011-09-11 01:26:07 -05:00
Brandon Taylor
6c3e93ded8
Changed name of static media folder from \"media\" to \"static\" for use with django.contrib.staticfiles app.
2011-09-11 01:22:19 -05:00
Brandon Taylor
2f2aeff0ec
Fixed if statements so they won't bomb if inline class doesn't subclass sortable.
2011-09-03 22:46:05 -05:00
Brandon Taylor
d67112e66d
Added login credential information to main README.
...
Added README for sample_project that also contains login credentials for the impatient.
2011-09-03 22:21:37 -05:00
Brandon Taylor
7df70a2339
Updated version to 1.0.4.
...
Updated setup.py
2011-09-03 22:11:40 -05:00
Brandon Taylor
5d10de5ed4
Added SortableInlineBase class to do subclass checking.
2011-09-03 22:03:40 -05:00
Brandon Taylor
971de8423c
Added support for stacked inline models.
...
Added highlighting to sorted inline.
Added migrations to add Note class to database.
Added SortableInlineBase for checking type of model specified in inline model subclasses Sortable.
2011-09-03 22:02:48 -05:00
Brandon Taylor
4e38d8fbe1
Adding files to repo.
2011-08-31 19:51:02 -05:00