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

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

src/d/j/django-orm-2.0.5/django_orm/postgresql/hstore/fields.py   django-orm(Download)
    def to_python(self, value):
        return util.unserialize_references(value) if value else {}
 
    def _value_to_python(self, value):
        return util.acquire_reference(value) if value else None

src/d/j/django-orm-extensions-3.0b3/django_orm/postgresql/hstore/fields.py   django-orm-extensions(Download)
    def to_python(self, value):
        return util.unserialize_references(value) if value else {}
 
    def _value_to_python(self, value):
        return util.acquire_reference(value) if value else None

src/d/j/django-orm-2.0.5/django_orm/postgresql/hstore/forms.py   django-orm(Download)
    def to_python(self, value):
        value = super(ReferencesField, self).to_python(value)
        return util.unserialize_references(value)
 

src/d/j/django-orm-extensions-3.0b3/django_orm/postgresql/hstore/forms.py   django-orm-extensions(Download)
    def to_python(self, value):
        value = super(ReferencesField, self).to_python(value)
        return util.unserialize_references(value)