0👍
Without further context I’d imagine that the course_date
is a date, and they never equal strings which is why you always get the date
{% if dates.course_date %}
Should be enough to resolve the issue
- Django add field to auth_user
- TypeError: int() argument must be a string or a number, not 'Model Instance' – Heroku
- Appending html with a django link in ajax
- (Django) Ajax – Multiple Objects
Source:stackexchange.com