8bcf2bfb2e
Fixed check for sortable inline models which prevented JavaScript from loading correctly.
Brandon Taylor2013-05-07 09:22:40 -04:00
6f2e667e6c
Updated version to 1.4.7. Updated README with JavaScript fixes.
Brandon Taylor2013-05-04 15:03:30 -04:00
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.
Brandon Taylor2013-05-04 15:00:23 -04:00
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.
Brandon Taylor2013-05-03 08:35:17 -04:00
32c6f7c034
Fixed unicode support for title context variable in sort view. Updated version to 1.4.5.1 Updated README.
Brandon Taylor2013-04-30 08:36:46 -04:00
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.
Brandon Taylor2013-04-27 22:58:02 -04:00
b6e68fa367
Removed url template tags and put in relative paths for sorting urls for Django <= 1.4.x and Django 1.5.x compatibility.
Brandon Taylor2013-04-27 13:10:53 -04:00
373197553e
Reverted changes that added get_sort_url template tag, as this caused an exception error with inlines.
Brandon Taylor2013-04-26 13:30:42 -04:00
661f417a7b
Merged pull request from kynazz to add support for unicode in sort view title. Updated readme and version.
Brandon Taylor2013-04-23 08:05:40 -04:00
ddbeca7177
Improved documentation for adding Sortable to an existing model.
Brandon Taylor2013-03-10 21:05:10 -04:00
e10d653d3a
Improved documentation for adding Sortable to an existing model.
Brandon Taylor2013-03-10 21:04:32 -04:00
9cb756e3ea
Improved documentation for adding Sortable to an existing model.
Brandon Taylor2013-03-10 21:03:55 -04:00
a8fcabc328
Merge branch 'master' of github.com:iambrandontaylor/django-admin-sortable
Brandon Taylor2013-03-10 20:53:32 -04:00
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.
Brandon Taylor2013-03-10 20:53:05 -04:00
ac2cecf291
Updated documentation formatting and information for 1.4 release.
Brandon Taylor2013-03-08 13:45:15 -05:00
b81bb27e3d
Added TEMPLATE_CONTEXT_PROCESSORS to README.
Tony Cosentini2012-11-07 10:42:25 -08:00
e206dfc30c
Fixed application of CSS class 'sortable' to stacked inline elements that are sortable which was somehow excluded from the previous release.
Brandon Taylor2012-11-02 13:49:30 -04:00
9145da6a23
Updated version to 1.3.6, which also somehow didn't make it into the previous release
Brandon Taylor2012-11-02 13:38:19 -04:00
a66757d728
Fixed the changed to the get_do_sorting_url template tag that somehow didn't make it into the previous release.
Brandon Taylor2012-11-02 13:33:55 -04:00
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.
Brandon Taylor2012-11-02 09:04:32 -04:00
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.
Brandon Taylor2012-09-25 10:52:31 -04:00
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
Brandon Taylor2012-07-09 11:05:59 -04:00
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.
Brandon Taylor2012-06-07 09:38:36 -04:00
4e918cbe4b
Updated README to provide example of usage of SortableForeignKey.
Brandon Taylor2012-02-24 22:51:22 -06:00
0eb5c86dc8
Updated README to reflect changes present in 1.3
Brandon Taylor2012-02-24 22:47:44 -06:00
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.
Brandon Taylor2012-02-24 22:35:30 -06:00
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.
Brandon Taylor2011-11-22 22:27:20 -06:00
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.
Brandon Taylor2011-11-22 22:19:39 -06:00
fe01094ac6
Merge branch 'master' of github.com:btaylordesign/django-admin-sortable
Brandon Taylor2011-11-22 21:00:19 -06:00
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.
unknown2011-11-22 20:42:36 -06:00
fba568399c
Eliminated setting of self.order to 1 if Max returns None, as order has a default value of 1 defined in the field.
Brandon Taylor2011-11-16 20:50:12 -06:00
7a242dd41c
Refactored classmethods to use aggregation Max instead order_by.
Brandon Taylor2011-11-16 20:24:33 -06:00
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
Brandon Taylor2011-11-16 00:48:14 -06:00