Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added feature and test for deleting trash after one month #1227

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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