-
Notifications
You must be signed in to change notification settings - Fork 66
Fixes for Django 1.6 #17
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
Conversation
Fixes for Django 1.6 (as of beta 1)
Editing comments.
https://travis-ci.org/jimfunk/django-postgresql-netfields/jobs/8943029#L55 seems there is an indentation error in your code. |
fixed bad indent.
Sorry about that. Should be working now. |
Now that Django 1.6 is out, any chance of this getting merged? |
I added commit 673de18jmacul2@673de18 On Fri, Jul 12, 2013 at 2:58 PM, Thomas Adamcik notifications@github.comwrote:
|
I actually get two errors on 673de18:
|
macaddr searches were broken pre 1.6. Updated test to reflect the correct way to regex search on a macaddr.
So the two test errors are actually incorrect postgres SQL. You cannot do a regex search on macaddr without first converting it to text. This appeared to always have been broken until they patched it here: http://goo.gl/Z1oLSN. I updated the tests just to get them to work on all versions, but you might want to change it differently. |
@jmacul2's fix works for me. Any chance of getting it committed? |
Since Django 1.6 changed WhereNode a bit, I've added changes to make 1.6 work while preserving backwards compatibility. This should and needs to be reviewed. There might be a better way to handle this.