Ticket #32832: models.py

File models.py, 630 bytes (added by Omkar Deshpande, 3 years ago)

models.py

Line 
1from django.db import models
2from django_mysql.models import JSONField
3
4
5class NucleusData(models.Model):
6 no_param_json = JSONField()
7 null_json = JSONField(null=True)
8 default_json = JSONField(default=dict)
9 null_n_default_json = JSONField(default=dict, null=True)
10
11 no_param_txt = models.TextField()
12 null_txt = models.TextField(null=True)
13 default_txt = models.TextField(default="")
14 null_n_default_txt = models.TextField(default="xyz", null=True)
15 null_default_blank_txt = models.TextField(default="abc", null=True, blank=True)
16 new_txt = models.TextField(default="abc", null=True, blank=True)
Back to Top