multmeio/django-hstore-flattenfields — pull request #2 by luanfonceca (2013-05-30 20:11:38+00:00)
Title: Adding the Django QuerySet tests and Converting the Data in level of object

* Creating the new project called ```testing```
* Adding the Django QuerySet tests;
* Adding Data parse Tests;
* Parse the data
* if you have an `instance` of any Entity wich have a inheritance of HStoreModel, and assuming that you created a DynamicField to that Entity and he is called 'value', as an Integer, i built this manipulating the `to_python` method, inside the ModelField class:

```python
>>> DynamicField.objects.values()
[{
'default_value': u'', 'name': 'value', 'order': None,
'max_length': None, 'typo': u'Integer', 'blank': True,
'choices': '', 'verbose_name': u'Value',
'id': 1, 'refer': u'Entity'
}]
>>> c = Entity.objects.all()[0]
>>> c.value
10
>>> type(c.value)

>>> c._dfields
{'value': '10'}
```