class Badge(Model): #.... class Meta: unique_together = ('identifier', 'restaurant') Using a CreateView, when creating a Badge object whose identifier already exists, I actually get a form error, which is the expected behaviour. But, using an UpdateView, when…