【发布时间】:2011-04-17 21:13:14
【问题描述】:
我想删除特定记录。比如
delete from table_name where id = 1;
如何在 django 模型中做到这一点?
【问题讨论】:
-
同意@Freedom_Ben,但对于喜欢 f* 手册的未来读者来说,这就是你要找的:docs.djangoproject.com/en/dev/topics/db/queries/…
标签: python django django-models