Auto delete a Django object from the database based on DateTimeField

后端 未结 0 1894
忘掉有多难
忘掉有多难 2020-12-18 21:01

Let\'s imagine a simple Food model with a name and an expiration date, my goal is to auto delete the object after the expiration date is reached.

I want to delete obj

相关标签:
回答
  • 消灭零回复
提交回复
热议问题