-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature/remove deleted files #1302
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: django_app/redbox_app/redbox_core/models.py
Did you find this useful? React with a 👍 or 👎 |
@@ -672,9 +666,6 @@ def url(self) -> str: | |||
|
|||
@property | |||
def file_name(self) -> str: | |||
if self.original_file_name: # delete me? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this logic into delete
|
||
status = models.CharField(choices=Status.choices, null=False, blank=False) | ||
original_file = models.FileField( | ||
storage=settings.STORAGES["default"]["BACKEND"], | ||
upload_to=build_s3_key, | ||
) | ||
user = models.ForeignKey(User, on_delete=models.CASCADE) | ||
original_file_name = models.TextField(max_length=2048, blank=True, null=True) # delete me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whilst im here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Context
We no longer need the deleted status for files
Changes proposed in this pull request
Guidance to review
Relevant links
Things to check