We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Saving the file_size in the database is already implemented for Wagtail images and documents.
file_size
file_size = models.PositiveIntegerField(null=True, editable=False)
The file_size is set in the save function, for example, in BaseImageForm.
save
BaseImageForm
I suggest implementing this for media as well. This would have the advantage of allowing objects to be sorted directly by file_size.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Saving the
file_size
in the database is already implemented for Wagtail images and documents.file_size = models.PositiveIntegerField(null=True, editable=False)
The
file_size
is set in thesave
function, for example, inBaseImageForm
.I suggest implementing this for media as well. This would have the advantage of allowing objects to be sorted directly by
file_size
.The text was updated successfully, but these errors were encountered: