instance = Something.objects.create(name='something', data={'a': '1', 'b': '2'})
And now i want to add one more pair: {'c': '3'}
is there any method to do so? any help to do so?
--
You received this message because you are subscribed to the Google Groups "django-hstore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-hstor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
class Something(models.Model):
data = hstore.DictionaryField()
objects = hstore.HStoreManager()Something.objects.all().hupdate(attr='data',updates={'c':'3'})