SyntaxFix
Write A Post
Hire A Developer
Questions
{% if profile.user.first_name %} works (assuming you also don't want to accept '').
{% if profile.user.first_name %}
''
if in Python in general treats None, False, '', [], {}, ... all as false.
if
None
False
[]
{}