You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The migration for a new clickhouse model defines the objects manager as the default django manager rather than the ClickhouseManager used in the base ClickhouseModel class.
Accessing the manager in code does return the correct manager ie:
mhaVC
changed the title
[BUG] Manager defined in migration does not use the clickhouse manager
[BUG] Manager defined in migration is not the clickhouse manager
Jan 30, 2025
Is this behavior because django doesn't utilize custom managers in migrations?
Apologies if that is the case and I misunderstood this behavior as a bug
Describe the bug
The migration for a new clickhouse model defines the
objects
manager as the default django manager rather than theClickhouseManager
used in the baseClickhouseModel
class.Accessing the manager in code does return the correct manager ie:
To Reproduce
The model class:
The migration:
Expected behavior
I'd have expected the
managers
definition in the migration to use the ClickhouseManager class.Versions
SELECT version()
query.The text was updated successfully, but these errors were encountered: