mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Thanks Mariusz Felisiak and Simon Charette for reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e46ca51c24
commit
8b040e3cbb
@@ -363,6 +363,14 @@ class NullableJSONModel(models.Model):
|
||||
required_db_features = {'supports_json_field'}
|
||||
|
||||
|
||||
class RelatedJSONModel(models.Model):
|
||||
value = models.JSONField()
|
||||
json_model = models.ForeignKey(NullableJSONModel, models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
required_db_features = {'supports_json_field'}
|
||||
|
||||
|
||||
class AllFieldsModel(models.Model):
|
||||
big_integer = models.BigIntegerField()
|
||||
binary = models.BinaryField()
|
||||
|
||||
Reference in New Issue
Block a user