Re: ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
I have now separated the form definitions into forms.py and import the models from models.py... so this is fixed -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
Hi, given the following models and model form I get the error in the subject, apparently because the related model "roomsetup" is defined *after* the "RoomsForm" form and is not loaded at the time the form is created. class rooms(models.Model): [ lots of other fields] *room_setup* =