diff options
| author | Adam Chainz <adam@adamj.eu> | 2015-05-24 11:16:21 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-30 20:37:57 -0400 |
| commit | e60cce4e401ae9481b66b6c7821e85237f1baa1a (patch) | |
| tree | f0f537e10783050d85b9d98a5e7fb0e0d9a47be2 /tests/schema/fields.py | |
| parent | 00e8e514e173dbbbc9d30f5753f4605eeffb2340 (diff) | |
Fixed #24846 -- Added support to MySQL SchemaEditor for all blob/text data types
Diffstat (limited to 'tests/schema/fields.py')
| -rw-r--r-- | tests/schema/fields.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/schema/fields.py b/tests/schema/fields.py index 0392a29aa2..8499477d65 100644 --- a/tests/schema/fields.py +++ b/tests/schema/fields.py @@ -1,3 +1,4 @@ +from django.db import models from django.db.models.fields.related import ( RECURSIVE_RELATIONSHIP_CONSTANT, ManyRelatedObjectsDescriptor, ManyToManyField, ManyToManyRel, RelatedField, @@ -56,3 +57,11 @@ class CustomManyToManyField(RelatedField): class InheritedManyToManyField(ManyToManyField): pass + + +class MediumBlobField(models.BinaryField): + """ + A MySQL BinaryField that uses a different blob size. + """ + def db_type(self, connection): + return 'MEDIUMBLOB' |
