Commit Graph

495 Commits (10188ec8ac3fe8e0c2c4faac0703df30a9193488)

Author SHA1 Message Date
Brandon Taylor 7cd8f7cad3 Added Python 3 compatibility to sample project.
Removed utils file and moved map_path function to settings.py.
Refactored tests for Python 2 and 3 compatibility.
Added inheritance check to get proper determination if a SortableForeignKey field is defined but the specified model does not inherit from Sortable.
2014-11-19 10:58:55 -05:00
Brandon Taylor 81fc032c8b Merge pull request #96 from MagicSolutions/fix_js_for_inlines
Make inlines to work corectly with non sortable inlines
2014-11-18 10:17:12 -05:00
Venelin Stoykov cbce6debb4 Update sample_project for easy testing sortable and nonsortable inlines 2014-11-18 17:04:58 +02:00
Venelin Stoykov cfcf6b1a46 Make inlines to work corectly with non sortable inlines 2014-11-18 17:04:20 +02:00
Brandon Taylor daadd190cb Added sortable non-online category example. 2014-11-08 08:49:07 -05:00
Brandon Taylor bcd328a101 Added child to str representation of self-referential model. 2014-11-03 11:19:59 -05:00
Brandon Taylor c855ad8be3 Updated version in readme. 2014-11-03 10:51:41 -05:00
Brandon Taylor a7179fece4 Version bump to 1.7.7.
Updated readme with notes on self-referential SortableForeignKeys.
2014-11-03 10:50:02 -05:00
Brandon Taylor a48cf00396 Added migrations, fixed queryset call and fixed meta inheritance for self-referential sample model. 2014-11-03 10:45:50 -05:00
Brandon Taylor 7c60d89c71 Data changes from testing. 2014-11-03 10:44:31 -05:00
Brandon Taylor e521d5c8ad Added extra check for object when sorting self-referential models. 2014-11-03 10:44:11 -05:00
Brandon Taylor 612c4f8031 Added method to check for self-referential sortable foreign keys. 2014-11-03 10:43:41 -05:00
Brandon Taylor d332563e27 Fixed call to queryset object for Django >= 1.7 2014-11-03 10:43:13 -05:00
Brandon Taylor 13945375f1 Version bump to 1.7.6.
Updated readme.
2014-10-24 20:43:12 -04:00
Brandon Taylor 42ae56af0b Changes to data from manual testing. 2014-10-24 20:38:13 -04:00
Brandon Taylor 0ac0b56121 Removed unused objects.
Added Person create statements and removed call to fixture data to prevent migration problems across Django versions.
2014-10-24 20:35:55 -04:00
Brandon Taylor be52851f38 Added new model and data. 2014-10-24 20:35:02 -04:00
Brandon Taylor ff4bc9b676 Deleted initial data fixture. 2014-10-24 20:34:42 -04:00
Brandon Taylor 5e318551ca Wired up SortableNonInlineCategory model to admin. 2014-10-24 20:34:06 -04:00
Brandon Taylor 6ec43fcd76 Added new model class to demonstrate a sortable model with a foreign key that is not sortable that is not defined as an inline. 2014-10-24 20:32:53 -04:00
Brandon Taylor 5eaf0987b9 Added a space after the legacy sortable_by parameter to separate it. 2014-10-24 20:31:02 -04:00
Brandon Taylor 116a933d92 Updated comments to be clearer.
Minor formatting changes.
Cahnged check for sortable_by_class_is_sortable to use new check_model_is_sortable, rather than only relying on the number of objects.
2014-10-24 20:30:14 -04:00
Brandon Taylor 3acd88e8c4 Added utility function to check if a model defined as a sortable foreign key inherits from Sortable and if there are more than one objects for that model. 2014-10-24 20:28:36 -04:00
Brandon Taylor 651064d3fb Added sortable model that will not be registered as an inline, but will have a non-sortable parent. 2014-10-24 09:15:07 -04:00
Brandon Taylor 4da0deb503 Updated readme.
Version bump to 1.7.5
2014-10-06 09:07:30 -04:00
Brandon Taylor ca2a414ded Added version specific overrides for get_queryset and get_query_set.
Added new get_permissions_codename check for permissions in upcoming Django 1.8.
Refactored all version checks. All checks are done in tuple format instead of checking for a django major and minor version number.
Removed unused RequestFactory in tests.
2014-10-06 08:56:41 -04:00
Brandon Taylor b705c924f0 Fixed comparison operator according to PEP8. 2014-10-04 11:55:12 -04:00
Brandon Taylor 9935f65ca0 Update README.md 2014-09-21 19:35:21 -04:00
Brandon Taylor 13c84e8d0b Updated readme docs for migrations. 2014-09-21 19:28:33 -04:00
Brandon Taylor 03cfdf2f3d Version bump to 1.7.4.
Updated readme with additional NonSortableParentAdmin related docs.
2014-09-21 19:20:55 -04:00
Brandon Taylor 588fc7a4cd Added new models and model admins to Python3 sample project. 2014-09-21 18:45:46 -04:00
Brandon Taylor 3a3392a7a1 Added additional models for non sortable parent with sortable inlines. 2014-09-21 15:15:40 -04:00
Brandon Taylor 234a0118db Added NonSortableCategory and SortableCategoryWidget model classes.
Wired up NonSortableCategory and inline sortable SortableCategoryWidget to sample project admin.
2014-09-21 15:14:03 -04:00
Brandon Taylor f33f5e90ed Refactored do_sorting_view to get start_index default value from len(indexes) rather than duplicate the line and set to 0.
Added NonSortableParentAdmin class to enable sorting URLs and JavaScript on models that do not inherit from Sortable.
Removed unused 'ordering' property on SortableAdmin.
Changed assignment of sorting_filters to use getattr, enabling NonSortableParentAdmin to inherit from SortableAdminBase.
Moved template properties to SortableAdminBase.
2014-09-21 15:12:30 -04:00
Brandon Taylor b880018f71 Added css target class to proerly display the 'move' cursor for sortable stacked inlines. 2014-09-21 14:31:46 -04:00
Brandon Taylor d799a91e54 Merge pull request #91 from jaap3/patch-1
Removed a stray "TEST 2"
2014-09-19 07:50:50 -04:00
Jaap Roes 0e993c524c Removed a stray "TEST 2" 2014-09-19 13:30:46 +02:00
Brandon Taylor da20ef0b53 Removed south entirely from project. 2014-09-12 09:35:50 -04:00
Brandon Taylor 0edc62ebe5 Removed minor version spec of Python. 2014-09-12 09:24:35 -04:00
Brandon Taylor 922d289025 Updated python versions in excludes. 2014-09-12 09:21:58 -04:00
Brandon Taylor 82e683756e Fixed string formatting for Python 2.6 in tests.
Updated Travis Python 2.7 version to 2.7.6.
More excludes.
2014-09-12 09:20:36 -04:00
Brandon Taylor fcb7fd132d More excludes. 2014-09-12 09:14:28 -04:00
Brandon Taylor b86bbec630 More Travis config changes to matrix. 2014-09-12 09:09:31 -04:00
Brandon Taylor 99d53d06b9 Added south install back. 2014-09-12 08:58:46 -04:00
Brandon Taylor 354f7db569 More travis adjustments. 2014-09-12 08:56:10 -04:00
Brandon Taylor 4c2925e1f0 Added SOUTH_TESTS_MIGRATE to settings. 2014-09-12 08:51:36 -04:00
Brandon Taylor 6953be4fd8 Fixed YAML parsing errors. 2014-09-12 08:47:48 -04:00
Brandon Taylor 18735017db Updated Travis config matrix. 2014-09-12 08:45:19 -04:00
Brandon Taylor 1a4930a29f Merge branch 'master' of github.com:iambrandontaylor/django-admin-sortable 2014-09-12 08:14:51 -04:00
Brandon Taylor a5363c94cb Updated Travis config to test against multiple versions of Python and Django. 2014-09-12 08:14:30 -04:00