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

Remove unused modified field on Upload model #1713

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

mvandenburgh
Copy link
Member

I noticed this while investigating what new fields (if any) we need to add for garbage collection of Uploads. We don't use this anywhere at this time, and since we've already decided to rework how we do modified (not using TimeStampedModel), I think it makes sense to just remove this.

Comment on lines +21 to +30
migrations.AlterField(
model_name='embargoedupload',
name='created',
field=django_extensions.db.fields.CreationDateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='upload',
name='created',
field=django_extensions.db.fields.CreationDateTimeField(auto_now_add=True),
),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this migration got created because TimeStampedModel defines created internally a bit differently using gettext_lazy https://github.com/django-extensions/django-extensions/blob/main/django_extensions/db/models.py#L17

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvandenburgh
Copy link
Member Author

#1714 will fix the failing type check here.

@mvandenburgh mvandenburgh merged commit a22cbdc into master Oct 17, 2023
8 of 10 checks passed
@mvandenburgh mvandenburgh deleted the remove-modified-field-upload branch October 17, 2023 16:45
@dandibot
Copy link
Member

🚀 PR was released in v0.3.58 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants