SmileyChris / django-countries

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Home Page:https://pypi.python.org/pypi/django-countries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange behavior with empty or None

alexandre-fundcraft opened this issue · comments

I've seen the problem, and I know how to solve the problem, it is just a question.
Is it normal return an instance with empty attributes Country(code=None) or Country(code='')?
I whould like to know the reason for this behavior if it is possible.
My approach is return None (I don't use empty strings)

Thanks