开发者

Django multi-model update in Admin?

开发者 https://www.devze.com 2023-02-11 09:06 出处:网络
How can I select multiple items from an admin view and create a custom action? Scenario: We need to select a set of books and assign开发者_开发问答 set of categories (from a list) and assign them to

How can I select multiple items from an admin view and create a custom action?

Scenario: We need to select a set of books and assign开发者_开发问答 set of categories (from a list) and assign them to them.

Is it possible to achieve this in Django Admin?

Thanks.


already included in django: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/


We ended up doing a custom view and works fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消