Did I find the right examples for you? yes no

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

src/d/j/djorm-ext-hstore-0.6/djorm_hstore/tests/models.py   djorm-ext-hstore(Download)
 
from django.db import models
 
from ..fields import DictionaryField, ReferencesField
from ..models import HStoreManager
class DataBag(models.Model):
    name = models.CharField(max_length=32)
    data = DictionaryField(db_index=True)
 
    objects = HStoreManager()
class DataBagNullable(models.Model):
    name = models.CharField(max_length=32)
    data = DictionaryField(db_index=True, null=True)
 
    objects = HStoreManager()
class RefsBag(models.Model):
    name = models.CharField(max_length=32)
    refs = ReferencesField(db_index=True)
 
    objects = HStoreManager()