The first question would be "Do you want to store NULL values?": if not -> clean (I'm not going to explain this - search for cleaning data or sanitizing data); if so -> still clean your data but also use a binary field (I'm not going to explain this - search for storing binary data in django/postgresql)