Exemplo n.º 1
0
 class Meta:
     verbose_name = "ToDo"
     verbose_name_plural = "ToDos"
     indexes = [
         Index(fields=["user", "is_done"])
     ]
     ordering = ["-created_at"]
Exemplo n.º 2
0
 class Meta:
     managed = False
     db_table = 'sys_menu'
     verbose_name = '메뉴'
     verbose_name_plural = '메뉴'
     constraints = [
         UniqueConstraint(fields=['menu_cd', 'parent_menu_cd'],
                          name='sys_menu_uk')
     ]
     indexes = [
         Index(fields=['menu_name_ko', 'menu_name_en', 'url', 'use_yn'],
               name='sys_menu_ix1'),
     ]
Exemplo n.º 3
0
 class Meta:
     indexes = [
         Index(name='other-index', fields=['url']),
         ZomboDBIndex(url='http://localhost:9200/',
                      fields=[
                          'name',
                          'street',
                          'zip_code',
                          'city',
                          'state',
                          'phone',
                          'email',
                          'website',
                          'categories',
                      ]),
     ]
Exemplo n.º 4
0
 class Meta:
     ordering = ('subject_identifier', 'status_date', '-created')
     indexes = [
         Index(fields=['subject_identifier', 'status_date']),
         Index(fields=['subject_identifier', 'status_date', '-created'])
     ]