İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1221 Görünümler

how to cancel that option when one field have 1 information in specific.


for example, if field1 = lalalala, the user cant duplicate the document

Avatar
Vazgeç
En İyi Yanıt

Hi,

You can use constraints for this,

_sql_constraints = [
        ('name_uniq', 'UNIQUE (field_name)',  'The name must be unique !')
    ]


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 25
1955
3
Tem 25
3547
1
May 25
1668
1
May 25
1902
4
May 25
3032