Skip to content

Conversation

DazzlingPenguin786
Copy link

Created an endpoint which deletes photos that are older than one month.

Copy link

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@derneuere
Copy link
Member

I think you missed actually setting the moved_to_trash timestamp in the deletion view :)

Instead of adding a new endpoint, maybe a cron job would make more sense, which checks every day, if there are old images. Maybe with a new setting to automatically delete these photos :) https://django-q2.readthedocs.io/en/master/schedules.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants