Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'unicode' object has no attribute data #2

Open
kuyucakli opened this issue May 24, 2013 · 1 comment
Open

'unicode' object has no attribute data #2

kuyucakli opened this issue May 24, 2013 · 1 comment

Comments

@kuyucakli
Copy link

I am using Django 1.5, with postgresql 1.9.4 db... when i try to add cropField to my model and migrate with south it gives 'unicode' object has no attribute data error. I have found the line that is causing the error --->

def get_db_prep_value(self, value, **kwargs):
        return self.json_field.get_db_prep_value(value.data, **kwargs)

When i change value.data to value south migrates. But this time when i try to edit my model on admin it gives 'unicode' object has no attribute 'iteritems' error from that line --->

 for name in value.iteritems(): ...
            name = self.validate_name(name)
            if hasattr(self, name):
                continue

Am i doing smt wrong?

@flashingpumpkin
Copy link
Contributor

Could you please post the full traceback? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants