{"repo":"crccheck/django-object-actions","free":true,"listed":false,"github":"https://github.com/crccheck/django-object-actions","clone":"git clone https://github.com/crccheck/django-object-actions.git","description":"A Django app for easily adding object tools in the Django admin","language":"Python","stars":812,"topics":["django-admin","python","django"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Django Object Actions If you've ever tried making admin object tools you may have thought, \"why can't this be as easy as making Django Admin Actions?\" Well now they can be. Quick-Start Guide Install Django Object Actions: Add django object actions to your INSTALLED APPS so Django can find our templates. In your admin.py: Usage Defining new tool actions is just like defining regular [admin actions]. The major difference is the functions for django-object-actions will take an object instance instead of a queryset (see Re-using Admin Actions below). Tool actions are exposed by putting them in a change actions attribute in your admin.ModelAdmin . You can also add tool actions to the main changelist views too. There, you'll get a queryset like a regular [admin action][admin actions]: Just like admin actions, you can send a message with self.message user . Normally, you would do something to the object and return to the same url, but if you return a HttpResponse , it will follow it (hey, just like [admin actions]!). If your admin modifies get urls , change view , or changelist view , you'll need to take extra care because django-object-actions uses them too. Re-using Admin Actions If you would like a preexisting admin action to also be an object action , add the takes instance or queryset decorator to convert object instances into a queryset and pass querysets: [admin actions]: https://docs.djangoproject.com/en/stable/ref/contrib/admin/actions/ Customizing Object Actions To give th","default_branch":null,"files":null,"tree":[],"storefront":"/r/crccheck","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crccheck/django-object-actions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}