diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-12-13 22:11:06 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-03-02 10:29:02 +0100 |
| commit | 8ee1eddb7e148de89aebde9e68da495633fc1ec9 (patch) | |
| tree | 36b83db0cf15b0be47557449b9ed056646099542 /tests/model_fields/models.py | |
| parent | 0f306cad8442f9808e4410f190f434144ff6376a (diff) | |
Add a BinaryField model field
Thanks Michael Jung, Charl Botha and Florian Apolloner for review
and help on the patch.
Diffstat (limited to 'tests/model_fields/models.py')
| -rw-r--r-- | tests/model_fields/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
