djangosnippets.org: Latest snippets tagged with 'IntegerField'https://djangosnippets.org/tags/integerfield_1/2014-01-01T03:50:08.638839-06:00IntegerRangeField
2014-01-01T03:50:08.638839-06:00moemenhttps://djangosnippets.org/snippets/3016/<p>Django models IntegerField that get max_value and min_value in it's constructor and validate on it.</p>
<p>It's initialize the formfield with min_value and max_value, too.</p>
Freely redistributableByteSplitterField
2011-08-24T17:18:17.166457-05:00Lacourhttps://djangosnippets.org/snippets/2528/<p>When you want to save integers to the db, you usually have the choice between 16-, 32- and 64-bit Integers (also 8- and 24-bit for MySQL). If that doesn't fit your needs and you want to use your db-memory more efficient, this field might be handy to you.
Imagine you …</p>
Freely redistributableTinyIntegerField
2011-08-15T17:39:42.478692-05:00Lacourhttps://djangosnippets.org/snippets/2513/<p>Django lacks support of MySQL's "tinyint" 8-bit-integer datatype. This snippet gives you a TinyIntegerField and a PositiveTinyIntegerField. Falls back Django's SmallIntegerField if a different database-engine is used</p>
Freely redistributable