diff --git a/sapl/protocoloadm/models.py b/sapl/protocoloadm/models.py index 3d532a2d0..c35c4e828 100644 --- a/sapl/protocoloadm/models.py +++ b/sapl/protocoloadm/models.py @@ -472,6 +472,9 @@ class VinculoDocAdminMateria(models.Model): verbose_name_plural = _( 'Vinculos entre Documento Administrativo e Matéria Legislativa') ordering = ('id',) + unique_together = ( + ('documento', 'materia'), + ) def __str__(self): return f'Vinculo: {self.documento} - {self.materia}'