Example #1
0
class CharFieldModel(models.Model):
    data = jsonstore.JSONField(default=dict)
    char_field = jsonstore.CharField(max_length=250, blank=True)
    required_char_field = jsonstore.CharField(max_length=250)
Example #2
0
class NullBooleanFieldModel(models.Model):
    data = jsonstore.JSONField()
    nullboolean_field = jsonstore.NullBooleanField()
Example #3
0
class DateFieldModel(models.Model):
    data = jsonstore.JSONField()
    date_field = jsonstore.DateField(blank=True, null=False)
Example #4
0
class User(PolymorphicModel, AbstractUser):
    data = jsonstore.JSONField(null=True, default=dict)
    objects = UserManager()
Example #5
0
class BooleanFieldModel(models.Model):
    data = jsonstore.JSONField()
    boolean_field = jsonstore.BooleanField(json_field_name='data')
Example #6
0
class TimeFieldModel(models.Model):
    data = jsonstore.JSONField()
    time_field = jsonstore.TimeField(blank=True, null=False)
Example #7
0
class Person(models.Model):
    data = jsonstore.JSONField()
    name = jsonstore.CharField(max_length=250)
    address = jsonstore.CharField(max_length=250, blank=True)
Example #8
0
class Order(models.Model):
    data = jsonstore.JSONField()