From 8ee1eddb7e148de89aebde9e68da495633fc1ec9 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 13 Dec 2012 22:11:06 +0100 Subject: Add a BinaryField model field Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch. --- tests/model_fields/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/model_fields/models.py') diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 1d20f44fae..c3b2f7fccb 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -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 -- cgit v1.3