- Fixing regexp for versioning
- Add support for Django 2.2
Packaging:
- Don't require Django>=1.11 - we don't test for Django<1.11, but should be compatible. This requirement change should never have made it into a patch release.
Bugfix:
- Fix compatibility issue with Django>=1.11 migration framework when adding both a
WorkflowEnabled
model aForeignKey
to it.- Properly interact with Django's .only() querysets.
Bugfix:
- Add missing
on_delete
calls for Django>=1.11.
New:
- Add compatibility for Django up to 1.11
Note
This version drops support for Django==1.9
New:
- Add compatibility for Django up to 1.10 and Python 3.6
Note
This version drops support for Python 3.0-3.3 and Django<1.8.
Bugfix:
- Don't choke on dj.db.migration passing in
unicode
instead ofstr
- Fix packaging / docs layout
New:
- Add compatibility for Django up to 1.9
Bugfix:
- Fix invalid default TransitionLog ModelAdmin (lacking
readonly_fields
), thanks to btoueg- Fix updating :attr:`~django_xworkflows.models.BaseTransitionLog.timestamp` on :class:`~django_xworkflows.models.BaseLastTransitionLog` instances, thanks to tanyunshi
Note
This version drops support for Python 2.6; the next one will drop Django<1.7.
Bugfix:
- Add support for
django.db.migrations
(Django >= 1.7)
Packaging:
- #12: Prevent 'egg' packaging
Bugfix:
- Fix migrations to take into account Django's
AUTH_USER_MODEL
setting.
Bugfix:
- Fix packaging
New:
- #10: Ask Django' templates to not call transitions, and give access to sub-methods (e.g :meth:`~xworkflows.base.ImplementationWrapper.is_available`). Contributed by kanu.
Bugfix:
- #7: allow more than one :class:`~django_xworkflows.models.GenericTransitionLog` in the same project.
New:
- Provide a base :class:`~django_xworkflows.models.BaseLastTransitionLog` and a :class:`~django_xworkflows.models.GenericLastTransitionLog`, useful for storing only the last transition log for a given model.
Bugfix:
- Use :meth:`django.utils.timezone.now` instead of :meth:`datetime.datetime.now` with Django >= 1.4
New:
- Provide a base :class:`~django_xworkflows.models.BaseTransitionLog` without :class:`~django.contrib.contenttypes.generic.GenericForeignKey`.
- Ease specification of transition kwargs to store in custom :class:`TransitionLog <django_xworkflows.models.BaseTransitionLog>` classes
- Allow settings :attr:`~django_xworkflows.models.Workflow.log_model_class` explicitly (thus bypassing the lookup performed by :attr:`~django_xworkflows.models.Workflow.log_model`).
New:
- Enable support for XWorkflows 0.4.0
New:
- Add rebuild_transitionlog_states management command to refill :attr:`~django_xworkflows.models.BaseTransitionLog.from_state` and :attr:`~django_xworkflows.models.BaseTransitionLog.to_state`.
- Add indexes on various :class:`django_xworkflows.models.BaseTransitionLog` fields
Bugfix:
- Fix :class:`django_xworkflows.models.WorkflowEnabled` inheritance
Bugfix:
- Don't default to :class:`~django_xworkflows.models.TransactionalImplementationWrapper` when using a :class:`django_xworkflows.models.Workflow`.
Bugfix:
- Serialize unicode of :attr:`xworkflows.base.State.title` in south ORM freezing.
Bugfix:
- Include migrations in package
Bugfix:
- Fix log=False/save=False when calling transitions
Bugfix:
- Avoid circular import issues when resolving :attr:`~django_xworkflows.models.Workflow.log_model` to a :class:`~django.db.models.Model`
- Log source and target state names in :class:`~django_xworkflows.models.BaseTransitionLog`
New:
- Improve south support
- Run transition implementations in a database transaction
New:
- Introduce :class:`~django_xworkflows.models.StateField` for adding a :class:`~django_xworkflows.models.Workflow` to a model
- Adapt to xworkflows-0.3.0