mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
@@ -747,3 +747,10 @@ class ReturningModel(models.Model):
|
||||
|
||||
class NonIntegerPKReturningModel(models.Model):
|
||||
created = CreatedField(editable=False, primary_key=True)
|
||||
|
||||
|
||||
class JSONFieldNullable(models.Model):
|
||||
json_field = models.JSONField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
required_db_features = {'supports_json_field'}
|
||||
|
||||
Reference in New Issue
Block a user