2👍
✅
What about
{% if form.sender_name.queryset.count == 0 %}
link here
{% endif %}
Note: I can’t remember exactly, but it may actually be form.sender_name.field.queryset.count
Source:stackexchange.com