Beispiel #1
0
class HelloWorldProcess(Process):
    text = jsonstore.CharField(_('Message'), max_length=50)
    approved = jsonstore.BooleanField(_('Approved'), default=False)

    class Meta:
        proxy = True
        verbose_name = _("World Request")
        verbose_name_plural = _('World Requests')
Beispiel #2
0
class Client(User):
    address = jsonstore.CharField(max_length=250)
    zip_code = jsonstore.CharField(max_length=250)
    city = jsonstore.CharField(max_length=250)
    vip = jsonstore.BooleanField()

    def get_absolute_url(self):
        return reverse('client_edit', args=[self.pk])

    class Meta:
        proxy = True
class BooleanFieldModel(models.Model):
    data = jsonstore.JSONField()
    boolean_field = jsonstore.BooleanField(json_field_name='data')
Beispiel #4
0
class VIPClient(Client):
    approved = jsonstore.BooleanField()
    personal_phone = jsonstore.CharField(max_length=250)

    class Meta:
        proxy = True