A Django app for easily adding object tools in the Django admin
APACHE-2.0 License
Bot releases are hidden (Show)
There have been a lot of releases since v8.0.8
https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.md#v808-2023-08-26
The breaking change was dropping Python 3.7. While this project supports
3.7... that will change the next opportunity (50a03af
)
chore: update Django/Python test matrix and add classifier for py3.12 (#171) (ad3b898
)
chore: add Django v5 to CI matrix (#166)
https://docs.djangoproject.com/en/5.0/releases/5.0/ (b63aac1
)
Adding new Django Modal Actions package
Deleting Django Object Actions which hasn't had a commit in 3 years (813687e
)
Followup to #168 to get CI to pass again, documents how to make a POST
only action, and adds some test coverage.
There are still a few cleanup issues but this should get things moving
on POST only actions again. (494d581
)
fb3ce5b
)Another try at enforcing POST actions. This change is more gradual than
#149 - when library user doesn't change default options the behavior is
exactly the same as before the change, that is:
However, user can change this behavior using methods
and button_type
kwargs. For example @action(methods=['POST'], button_type='form')
results in
Unfortunately I have this tested only within my project. Also the docs
are missing.
And one more thing - I think it is better to use <input type="submit">
instead of js to submit the form. This js is need to make the buttons
look the same in both versions. With proper CSS (that is beyond my
ability to write ;) ) js is avoidable and we could be using pretty
semantic html submit button. I took the form button template from #149. (1274ae7
)
Published by crccheck about 1 year ago
Also moves Coverage config to pyproject.toml
to eliminate another top
level project file (7d439b6
)
chore(ci): add Django 4.2 to the build matrix (#154) (e73b4d0
)
chore: fix formatting in example app (#155)
Ran black on to comply with format from 23.x version (9bd288f
)
fixes deprecation warnings in CI:
> The set-output
command is deprecated and will be disabled soon.
Please upgrade to using Environment Files. For more information see:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ (3e42b3b
)
Hopefully this fixes the broken GitHub Action too
https://github.com/crccheck/django-object-actions/actions/runs/3464471740
error: No module named 'packaging'
https://github.com/python-semantic-release/python-semantic-release/issues/489
closes #144 (53417a0
)
To reduce future diffs from autoformat (f92464e
)
Just upgrading to stay current. Need to use "feat" to trigger a release.
https://python-semantic-release.readthedocs.io/en/latest/migrating_from_v7.html
fix(ci): maybe this will fix Semantic Release (#161) (1595348
)
fix(ci): update [tool.semantic_release] names (#160)
https://python-semantic-release.readthedocs.io/en/latest/configuration.html#config-version-variables (70d2c81
)
Published by crccheck about 1 year ago
Full Changelog: https://github.com/crccheck/django-object-actions/compare/v4.0.0...v4.1.0
Django has dropped Python 2 support ever since Django 2.0 (December 2, 2017). With Django 3.0 coming very soon and Python 2 reaching end of life, it doesn't make sense to continue supporting Python 2.
Published by crccheck over 5 years ago
Published by crccheck over 6 years ago
I didn't get around to everything I listed in #44 as a release blocker for 1.0,
but with Django going 2.0 and dropping backwards compatibility, I decided this
library needs some more stability. In the future look for more removals as
support for older versions of Django keep getting dropped.
https://github.com/crccheck/django-object-actions/compare/v0.10.0...v1.0.0
Published by crccheck over 7 years ago
https://github.com/crccheck/django-object-actions/compare/v0.9.0...v0.10.0
Published by crccheck over 7 years ago
Published by crccheck over 7 years ago
Published by crccheck over 7 years ago
objectactions
to change_actions
get_object_actions
(see below)changelist_actions
for creating action tools in the change list view tooget_change_actions
and get_changelist_actions
Deleted get_object_actions(request, context, **kwargs)
. If you used this
before, use get_change_actions(request, object_id, form_url)
instead. To
get at the original object, instead of context['original']
, you can use
self.model.get(pk=object_id)
, self.get_object(request, object_id)
, etc.
This isn't as convenient as it used to be, but now it uses the officially
documented way to add extra context to admin views.
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#other-methods
Renamed objectactions
. In your admin, instead of defining your actions in
the objectactions
attribute, use change_actions
.
Published by crccheck almost 8 years ago
https://github.com/crccheck/django-object-actions/compare/v0.8.2...v0.9.0
Changes:
RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10.
#46HttpStreamingResponse
from a tool now #50https://github.com/crccheck/django-object-actions/compare/v0.6.0...v0.7.0
Changes:
Known issues:
Published by crccheck over 10 years ago
get_object_actions()
method