Open ObadaS opened 1 month ago
What is the goal of manually changing the file_size
using Django admin interface?
Shouldn't the file size always reflect the size of the file? I may be missing something here.
The goal is limited, I found this problem after trying to apply the Simple Test of #1465
This is definitely not an important problem to fix, but I thought it would be interesting to at least have it documented, in case we might need to change the file_size
manually in the future for some other reason.
Hello,
Changing the file_size value in the Django admin interface is not working when the value is 0 or less. While the page says that the value has been updated, going back into the objects page shows the original value instead of the updated one.
I checked the value in the database to make sure it's not just a graphical bug, but the value is unchanged there too.
It seems to only be a problem when the value is 0 or lower (it gets changed back to the original value).
Changing the value to something else higher than 0 works well, but putting 0 or less will change it back to the original value instead of the previous positive value.