Pull requests

#4 Open
Repository
nautilebleu nautilebleu
Branch
default
Repository
kmike kmike
Branch
default

Allows to specify the table of the date_field

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update 
hg pull -r default https://bitbucket.org/nautilebleu/django-qsstats-magic
Author
  1. Goulwen Reboux
Reviewers
Description

If the QuerySet used to build the time_series contains tables with columns of the same name, a DatabaseError is raised and so the _slow_time_series is used.

This patch allows to specify the name of the db_table to used by passing a tuple (db_table, date_field) instead of the date_field.

Then a test is done on the instance of date_field where it's needed.

This way, this improvement is backward compatible with existing code.

  • Learn about pull requests

Comments (0)