- Fix
post_delete
signal triggered upshuffles to do a potentially expensive full reordering of the owrt group (#307) - Support passing custom
--batch_size
toreorder_model
management command (#303) - Add tox builder for python 3.11, Django 4.1 and above
- Add
ordered_model.fields.OrderedManyToManyField
which respectsMeta.ordering
when following ManyToMany related fields. (#277) - Relax check that
order_with_respect_to
entries final element must be aForeignKey
- it can be anyField
instance (#298)
- Relax Check for
OrderedModelManager
to aWarning
, if the manager returns the correct queryset (#290)
- Restrict signal handler 'senders' to subclasses of
OrderedModelBase
to avoid query count regression due toCollector.can_fast_delete
logic inmodels/deletion.py
(#288) - Fix
reorder_model
management command re-ordering with multipleorder_with_respect_to
values
- Fix a performance regression (unnecessary queries) in the WRT change detection (#286)
- Add a Check that
order_with_respect_to
specifies only ForeignKey fields - Add a Check that our subclasses of ModelManager and QuerySet are used (#286)
- Fix for
model.save()
falsely detecting WRT change from admin create since 3.7 - Cascaded deletes of
OrderedModel
instances now handled using signals (#182)
- Use bulk update method in
reorder_model
management command for performance (#273) - Add tox builder for python 3.10, use upstream DRF with upstream django
- Emit a system Check failure if a subclass of
OrderedModelBase
fails to specifyMeta.ordering
- Updating the value of fields within
order_with_respect_to
now adjusts ordering accordingly (#198)
- Add
serializers.OrderedModelSerializer
to allow Django Rest Framework to re-order models (#251 #264) - Add tox builder for Django 4.0, drop building against 2.0 and 2.1 due to DRF compatibility.
- Django 4.0 compatibility: Fix ChangeList constructor for Admin (#256)
- Remove usage of
assertEquals
in tests (#255) - Add admin screenshots to README (#245)
- Fix reorder command for custom order field models (#257)
- Fix packaging, setup.py was missing management command package path
- Fix
OrderedTabularInline
for models with custom primary key field (#233) - Add management command
reorder_model
that can re-order most models with a broken ordering (#240) - Fix handling of keyword arguments passed to
bulk_create
by Django 3 (#235) - Fix inline admin support for Proxy Models by adding parent model to url name (#242)
- Migrated to GitHub Actions workflow (#241)
- Fix regression in admin OrderedInlineMixin after refactor in 3.4.0
- Fix
bulk_create
not returning - Fix
OrderedModelQuerySet
returning parent class instances for polymorphic cases - Support django 3.0
- Drop support python 3.4
bulk_create
now works withorder_with_respect_to
- more internal refactoring moved most methods to
OrderedModelQuerySet
- Internal refactoring now using
Manager
- probably will break some code - provide
bulk_create
- Fix arrow-top and arrow-bottom not found
- Remove depricated
allow_tags
- Add
previous
andnext
methods - Add
top
andbottom
buttons in admin - Delete duplicated code from InlineModelAdminMixin
- Add Simplified Chinese translations
- Use
import_string
instead of__import__
- Make order field's
verbose_name
translatable(NOTE: this will cause creation of new migration file, which will not affect db state)
- Drop support for python 2.x
- Drop support for django 1.x
- Fix AdminInline for django > 2.1
- Do not install tests
- delete deprecated methods
move
,move_up
,move_down
and_move
- Add support for Django 2.1
- Support
order_with_respect_to
on related fields - Add Tabular and Stacked inline
- Drop support for Django < 1.11
- Add support for Django 2.0
- Fix problem where swap took a queryset instead of a model instance
- Fix a problem with links in the admin when using multiple threads.
- Use Django's version of
six
- Fix various deprecations
- Fix missing up/down links with custom primary key
pip install
not working due to missingrequirements.txt
- Support for ordering using a specified base class when using Multi-table inheritance
- Suport for Python 3.6, Django 1.10 and 1.11.
- The move up/down links in OrderedTabularInline
- Passing args to
filter()
which broke django-polymorphic.
- Add
extra_update
argument to various methods. - Fix bug in
order_with_respect_to
when using string in Python 3.
- Various bug fixes in admin
- Add support for URL namespaces other than "admin"
- Remove support for Django <1.8 and Python 2.6
- Support for multiple order_with_respect_to fields
- Remove usage of deprecated django.conf.urls.patterns
- Add support for many-to-many models.
- Add Italian translations.
1.0, because why not. Seems to be working alright for everyone. Some little things in this release:
- Add support for custom order field by inheriting from
OrderedModelBase
and settingorder_field_name
. - Add support for Python 3.
- Drop support for Django 1.4.
- Fix admin buttons not working with custom primary keys.
- Fix admin using deprecated
get_query_set
method.
- Add support for Django 1.7 and 1.8.
- Fix deprecation warning about module_name.
- Add French translations.
- Models can now be moved to any position, not just up and down.
move_up()
andmove_down()
are replaced byup()
anddown()
. See the readme for the full set of new methods. - Add
order_with_respect_to
option so models can be ordered based on another field. - The admin ordering controls are now rendered using templates.
- Ordering now always starts from 0 and has no gaps. Previously, gaps in the ordering numbers could appear when models were deleted, etc.
- Fix bug where objects always get the order of "0".
- Models with custom primary keys can now be used as ordered models.
- Support for Django 1.4, 1.5 and 1.6.
- Fix list_filter being deselected when moving in admin
- Improve performance of ordering by adding index and using Max aggregate
- First release