bugfix for django syntax