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

Postgres 8.4 not support json ('NoneType' object has no attribute 'cursor') #397

Open
avelino opened this issue Nov 14, 2014 · 0 comments
Open

Comments

@avelino
Copy link
Contributor

avelino commented Nov 14, 2014

'NoneType' object has no attribute 'cursor'

/lib/python2.7/site-packages/opps/db/models/fields/jsonf.py in db_type
                return self.default()
            return copy.deepcopy(self.default)
        # If the field doesn't have a default, then we punt to models.Field.
        return super(JSONFieldBase, self).get_default()
    def db_type(self, connection):
        if connection.vendor == 'postgresql' and\
           connection.pg_version >= 90400: ...
            return 'json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant