skip to navigation
skip to content

Not Logged In

django-sizefield 0.3

A model field to store a file size, whose edition and display shows units.

Latest Version: 0.7


A file size field, stored as BigInteger and rendered with units in Bytes (KB, MB, …)


With a model like

class Data(models.Model):
    path = models.FilePathField()
    size = FileSizeField()

In templates

{% load sizefieldtags %}

{{ data.size|filesize }}

will render 12.3KB (for example)

The model form will have a TextInput, which renders the value with units, and accepts values with or without units.

File Type Py Version Uploaded on Size
django-sizefield-0.3.tar.gz (md5) Source 2013-06-08 3KB
  • Downloads (All Versions):
  • 62 downloads in the last day
  • 231 downloads in the last week
  • 735 downloads in the last month