from django_iban.fields import IBANField ... class MyModel(models.Model): iban = IBANField(enforce_database_constraint=True, unique=True) The enable_databse_constraint option will add a function named ...