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

Django 1.8 compatibility. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

krischer
Copy link

django.db.backend is no longer available on Django 1.8.

This PR instead uses the vendor attribute of the database connection. I hope this works everywhere but if it does it would also warrant a new pypi release.

django.db.backend is no longer available on Django 1.8.
@barsch
Copy link

barsch commented Jul 25, 2015

unfortunately not working for me on Django 1.8 even with this patch

>>> query
[<ContinuousTrace: TA.A25A..VCO | DateTimeTZRange(datetime.datetime(2010, 3, 24, 23, 59, 38), ...]
>>> query[0].channel
'VCO'
>>> query.filter(channel__like='VC%')
[]
>>> query.filter(channel__like='VC_')
[]
>>> query.filter(channel__like='VCO')
[<ContinuousTrace: TA.A25A..VCO | DateTimeTZRange(datetime.datetime(2010, 3, 24, 23, 59, 38), datetime.datetime(2010, 3, 25, 0, 0, 58), '[)') | 0.1 Hz, 9 samples>]
>>> query.filter(channel='VCO')
[<ContinuousTrace: TA.A25A..VCO | DateTimeTZRange(datetime.datetime(2010, 3, 24, 23, 59, 38), datetime.datetime(2010, 3, 25, 0, 0, 58), '[)') | 0.1 Hz, 9 samples>]

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

Successfully merging this pull request may close these issues.

2 participants