Exemple #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)
Exemple #2
0
class NullBooleanFieldModel(models.Model):
    data = jsonstore.JSONField()
    nullboolean_field = jsonstore.NullBooleanField()
class DateFieldModel(models.Model):
    data = jsonstore.JSONField()
    date_field = jsonstore.DateField(blank=True, null=False)
Exemple #4
0
class User(PolymorphicModel, AbstractUser):
    data = jsonstore.JSONField(null=True, default=dict)
    objects = UserManager()
class BooleanFieldModel(models.Model):
    data = jsonstore.JSONField()
    boolean_field = jsonstore.BooleanField(json_field_name='data')
class TimeFieldModel(models.Model):
    data = jsonstore.JSONField()
    time_field = jsonstore.TimeField(blank=True, null=False)
Exemple #7
0
class Person(models.Model):
    data = jsonstore.JSONField()
    name = jsonstore.CharField(max_length=250)
    address = jsonstore.CharField(max_length=250, blank=True)
Exemple #8
0
class Order(models.Model):
    data = jsonstore.JSONField()