RE: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread 'Trevor Woolley' via Django users
Walter, If your copy and paste is accurate you have too many closing brackets in the ajax section. Try removing one of these from the end of the ajax section: }); From: django-users@googlegroups.com On Behalf Of Walter Randazzo Sent: Monday, 26 October 2020 9:09 AM To: django-users@googl

Re: Unit testing Multiselect fields not loading as expected

2017-05-08 Thread Trevor Woolley
data from > your production database when running tests?" note in ​this section [0]. > > [0] https://docs.djangoproject.com/en/dev/topics/testing/ > overview/#the-test-database > > > On Sunday, May 7, 2017 at 9:05:09 PM UTC-4, Trevor Woolley wrote: >> >> Fu

Re: Unit testing Multiselect fields not loading as expected

2017-05-07 Thread Trevor Woolley
Further investigation shows this as failing outside of a test scenario, and the "my_choices" is not being updated, unless the server (be that the ./manage.py runserver" or a production apache server) is restarted. Rgds Trevor On Friday, May 5, 2017 at 3:20:04 PM UTC+10, Trevo

Unit testing Multiselect fields not loading as expected

2017-05-04 Thread Trevor Woolley
Hi, when I run a unittest on a form containing a MultipleChoiceField, and in the unittest I test setting what I think should be a valid field, it does not pass. It appears that field in question extracts the data is uses for the test before the test database is created, and actually uses the pr