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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user