Permalink
Browse files

Just added README

  • Loading branch information...
1 parent b68f6b4 commit 2ce4658b14be236738b7f4c488f22eb94addd953 mathieu committed Jan 4, 2011
Showing with 26 additions and 0 deletions.
  1. +26 −0 README
View
@@ -0,0 +1,26 @@
+django-sizefield
+----------------
+A file size field, stored as BigInteger and rendered with units in Bytes (KB, MB, ...)
+
+
+Examples
+--------
+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.
+
+

0 comments on commit 2ce4658

Please sign in to comment.