Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(16)  |  Derive(0)  |  Import(5)

src/t/a/taiga-back-HEAD/taiga/userstorage/models.py   taiga-back(Download)
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django_pgjson.fields import JsonField
 
 
                                         verbose_name=_("modified date"))
    key = models.CharField(max_length=255, null=False, blank=False, verbose_name=_("key"))
    value = JsonField(blank=True, default=None, null=True, verbose_name=_("value"))
 
    class Meta:

src/t/a/taiga-back-HEAD/taiga/projects/models.py   taiga-back(Download)
 
from picklefield.fields import PickledObjectField
from django_pgjson.fields import JsonField
 
from taiga.users.models import Role
                                             verbose_name=_("videoconference room salt"))
 
    default_options = JsonField(null=True, blank=True, verbose_name=_("default options"))
    us_statuses = JsonField(null=True, blank=True, verbose_name=_("us statuses"))
    points = JsonField(null=True, blank=True, verbose_name=_("us points"))
    task_statuses = JsonField(null=True, blank=True, verbose_name=_("task statuses"))

src/t/a/taiga-back-HEAD/taiga/projects/history/models.py   taiga-back(Download)
from django.db.models.loading import get_model
from django.utils.functional import cached_property
from django_pgjson.fields import JsonField
 
 
                          editable=False, default=lambda: str(uuid.uuid1()))
 
    user = JsonField(blank=True, default=None, null=True)
    created_at = models.DateTimeField(auto_now_add=True)
    type = models.SmallIntegerField(choices=TYPE_CHOICES)
 
    # Stores the last diff
    diff = JsonField(null=True, default=None)
 
    # Stores the last complete frozen object snapshot
    snapshot = JsonField(null=True, default=None)
 
    # Stores a values of all identifiers used in
    values = JsonField(null=True, default=None)

src/d/j/django-pgjson-0.1.2/tests/pg_json_fields/tests.py   django-pgjson(Download)
from django.test import TestCase
from django.core.serializers import serialize, deserialize
from django_pgjson.fields import JsonField
 
from .models import TextModel
    def test_can_override_formfield(self):
        model_field = JsonField()
        class FakeFieldClass(object):
            def __init__(self, *args, **kwargs):
                pass

src/d/j/django-pgjson-0.1.2/tests/pg_json_fields/models.py   django-pgjson(Download)
# -*- coding: utf-8 -*-
 
from django.db import models
from django_pgjson.fields import JsonField
 
 
class TextModel(models.Model):
    data = JsonField()