Re: To keep or not to keep: logging of undefined template variables

2017-08-25 Thread Vlastimil Zíma
Apparently there is number of errors in admin templates. I suggest to fix the templates. I my experience, the most cases are missing if statements or missing context variables. These can be fixed very easily and produce cleaner templates. I consider this much better solution than just ignoring

Re: To keep or not to keep: logging of undefined template variables

2017-08-25 Thread Vlastimil Zíma
If anyone is interested, I've cleaned the errors in admin templates: Ticket: https://code.djangoproject.com/ticket/28529 PR: https://github.com/django/django/pull/8973 The fixes are quite simple. The biggest problem is sometimes to find out, in which template the bug actually appears. Vlastik

Feature request: Allow to process data-migrations after flush

2017-08-25 Thread Alan Arellano
Currently it's somewhat difficult to process initial data after a flush. You will need to fake the database state... In my case I'm creating all tables of the project with the migration 0001 and populating with initial data on migration 0002. After spending a time looking for solutions found