J
J
Jomm2021-09-06 21:01:40
Django
Jomm, 2021-09-06 21:01:40

How to delete data from db after time?

I want to make a subscription that will expire after a while.
I would be grateful if you tell me how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-07
@Jomm

This question has been asked a hundred times here. Subscriptions are implemented not by deleting data, but by recording in the database the time until which the subscription is valid, and reconciling this time with the current one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question