Re: Forms test run on development database instead of test database

2015-01-29 Thread Merouane Atig
Thank you for the explanation. So I suppose a better way to do it whould be to provide initialize the choices in the DomainForm __init__? Le mardi 27 janvier 2015 21:58:56 UTC+1, Collin Anderson a écrit : > > Hi, > > I just tried out your project. Looking at the stacktrace, the test module > is

Re: Forms test run on development database instead of test database

2015-01-27 Thread Collin Anderson
Hi, I just tried out your project. Looking at the stacktrace, the test module is importing forms (before the test starts). The forms module is running a query on startup for choices. https://github.com/merwan/django-choicefield/blob/master/myapp/forms.py Don't do queries on startup. :) Collin

Forms test run on development database instead of test database

2015-01-26 Thread Merouane Atig
Hi, I have a strange issue with a forms test and I would like to know if I'm doing something wrong or if it is a Django bug. I created a repo to reproduce the issue I have: https://github.com/merwan/django-choicefield I have a DomainForm class with a choice field populated from a table in the