简体   繁体   English

Django Admin - 批量编辑数据?

[英]Django Admin - Bulk editing data?

Are there any admin extensions to let bulk editing data in Django Admin?是否有任何管理扩展允许在 Django Admin 中批量编辑数据? (ie. Changing the picture fields of all product models at once. Note that this is needed for a users POV so scripting doesn't count.) Any thoughts on subject welcome. (即,一次更改所有产品模型的图片字段。请注意,这是用户 POV 所必需的,因此脚本不计算在内。)欢迎对主题提出任何想法。

With Django 1.1, you can create admin actions which can be applied to multiple entries at once.使用 Django 1.1,您可以创建可以一次应用于多个条目的管理操作。 See the documentation on this subject.请参阅有关此主题的文档

You have SQL.你有 SQL。 You can write SQL UPDATE statements.您可以编写 SQL UPDATE 语句。

You have Python for writing batch scripts that interact with the Django ORM.你有 Python 来编写与 Django ORM 交互的批处理脚本。 This works really, really well for bulk changes.这对于批量更改非常非常有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM