Bug?: Circular dependency between Django models

3 views
Skip to first unread message

Shubham Kumar

unread,
Aug 11, 2026, 7:43:40 AMAug 11
to core-stack-dev, aman....@oniondev.com, ankit...@oniondev.com, pawan...@gramvaani.org, Aaditeshwar Seth
Dear team,

I have noticed a circular dependency between the users/models.py and organization/admin.py. 
Each of the models cites the other and thus the code does not compile. 

To create tables in the database, for now the workaround seems to be manually creating the entries using Django shell.

Please help resolve this issue. 

Best Regards,
Shubham Kumar
 

Reply all
Reply to author
Forward
0 new messages