Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1201 Tampilan

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
Buang
Jawaban Terbai

Hi,

You can use constraints for this,

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 25
1926
3
Jul 25
3518
1
Mei 25
1636
1
Mei 25
1888
4
Mei 25
3007