->
Note: make sure you set upHStoreField
first before going on with this example. (above)
No parameters are required for initializing a HStoreField
.
from django.contrib.postgres.fields import HStoreField
from django.db import models
class Catalog(models.model):
name = models.CharField(max_length=200)
titles_to_authors = HStoreField()