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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/j/django-orm-2.0.5/django_orm/postgresql/hstore/fields.py   django-orm(Download)
    def get_prep_lookup(self, lookup, value):
        return util.serialize_references(value) if isinstance(value, dict) else value
 
    def get_prep_value(self, value):
        return util.serialize_references(value) if value else {}

src/d/j/django-orm-extensions-3.0b3/django_orm/postgresql/hstore/fields.py   django-orm-extensions(Download)
    def get_prep_lookup(self, lookup, value):
        return util.serialize_references(value) if isinstance(value, dict) else value
 
    def get_prep_value(self, value):
        return util.serialize_references(value) if value else {}

src/d/j/django-orm-2.0.5/django_orm/postgresql/hstore/forms.py   django-orm(Download)
    def render(self, name, value, attrs=None):
        value = util.serialize_references(value)
        return super(ReferencesFieldWidget, self).render(name, value, attrs)
 
 

src/d/j/django-orm-extensions-3.0b3/django_orm/postgresql/hstore/forms.py   django-orm-extensions(Download)
    def render(self, name, value, attrs=None):
        value = util.serialize_references(value)
        return super(ReferencesFieldWidget, self).render(name, value, attrs)