1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Add a BinaryField model field

Thanks Michael Jung, Charl Botha and Florian Apolloner for review
and help on the patch.
This commit is contained in:
Claude Paroz
2012-12-13 22:11:06 +01:00
parent 0f306cad84
commit 8ee1eddb7e
10 changed files with 85 additions and 2 deletions

View File

@@ -106,6 +106,10 @@ class VerboseNameField(models.Model):
class DecimalLessThanOne(models.Model):
d = models.DecimalField(max_digits=3, decimal_places=3)
class DataModel(models.Model):
short_data = models.BinaryField(max_length=10, default=b'\x08')
data = models.BinaryField()
###############################################################################
# FileField