From 13945375f1fdaab2340a457bdc1d1f30522918aa Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Fri, 24 Oct 2014 20:43:12 -0400 Subject: [PATCH] Version bump to 1.7.6. Updated readme. --- README.md | 12 +++++------- adminsortable/__init__.py | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3ce0aa1..94cf48e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/iambrandontaylor/django-admin-sortable.svg?branch=master)](https://travis-ci.org/iambrandontaylor/django-admin-sortable) -Current version: 1.7.5 +Current version: 1.7.6 This project makes it easy to add drag-and-drop ordering to any model in Django admin. Inlines for a sortable model may also be made sortable, @@ -105,7 +105,7 @@ A common use case is to have child objects that are sortable relative to a paren admin.site.register(Project, SortableAdmin) -Sometimes you might have a parent model that is not sortable, but has inline child models that are. In that case define your models and admin options as such: +Sometimes you might have a parent model that is not sortable, but has child models that are. In that case define your models and admin options as such: from adminsortable.fields import SortableForeignKey @@ -141,7 +141,7 @@ Sometimes you might have a parent model that is not sortable, but has inline chi admin.site.register(Category, CategoryAdmin) -The `NonSortableParentAdmin` class is necessary to wire up the additional URL patterns and JavaScript that Django Admin Sortable needs to make your inline models sortable. +The `NonSortableParentAdmin` class is necessary to wire up the additional URL patterns and JavaScript that Django Admin Sortable needs to make your models sortable. The child model does not have to be an inline model, it can be wired directly to Django admin and the objects will be grouped by the non-sortable foreign key when sorting. #### Model Instance Methods @@ -406,10 +406,8 @@ ordering on top of that just seemed a little much in my opinion. django-admin-sortable is currently used in production. -### What's new in 1.7.5? -- Updated admin code to handle deprecated functions in Django 1.7 and above in a more elegant fashion. -- Refactored all Django version checks. -- Added new permissions check for 'change' model permissions for Django 1.8. +### What's new in 1.7.6? +- Enabled sorting of child models with a non-sortable parent model, that are not defined as inlines. Fixes issue [#93](https://github.com/iambrandontaylor/django-admin-sortable/issues/93) ### Deprecation warnings diff --git a/adminsortable/__init__.py b/adminsortable/__init__.py index 194e6d6..712b954 100644 --- a/adminsortable/__init__.py +++ b/adminsortable/__init__.py @@ -1,4 +1,4 @@ -VERSION = (1, 7, 5) # following PEP 386 +VERSION = (1, 7, 6) # following PEP 386 DEV_N = None