Пример #1
0
 class Meta:
     model = Cat
     exclude = ()
     widgets = {
         'favorite_foods': SearchableSelect(model='example.Food', search_field='name', many=True),
         'owner': SearchableSelect(model='example.Person', search_field='name', many=False),
     }
Пример #2
0
 class Meta:
     model = SkillImprovement
     exclude = ()
     widgets = {
         'dependencies':
         SearchableSelect(model='characters.SkillImprovement',
                          search_field='name',
                          many=True),
         'parent':
         SearchableSelect(model='characters.Skills',
                          search_field='name',
                          many=False)
     }
Пример #3
0
 class Meta:
     model = Character
     exclude = ()
     widgets = {
         'char_classes':
         SearchableSelect(model='rules.Class',
                          search_field='name',
                          many=True)
     }
Пример #4
0
 class Meta:
     model = CardInDeck
     exclude = ()
     widgets = {
         'card':
         SearchableSelect(model='deck.Card',
                          search_field='text',
                          many=False),
     }
Пример #5
0
 class Meta:
     model = Books
     #fields = ['book_id', 'book_name', 'ISBN', 'description', 'author', 'publisher', 'edition', 'type', 'genre']
     exclude = ()
     widgets = {
         'author':
         SearchableSelect(model='Authors',
                          search_field='author_name',
                          many=True)
     }
Пример #6
0
 class Meta:
     model = Question
     exclude = ('', )
     widgets = {
         'syllabuspoint':
         SearchableSelect(model='tracker.SyllabusPoint',
                          search_field='syllabusText',
                          many=True,
                          limit=10)
     }
Пример #7
0
 class Meta:
     model = Visitor
     fields = ['fname', 'lname', 'phone', 'datetime_entry']
     widgets = {
         'resident_name':
         SearchableSelect(model='User', search_field='first_name',
                          limit=10),
         'datetime_entry':
         DateTimePickerInput(),
     }
Пример #8
0
 class Meta:
     model = UserDetail
     exclude = ('email', 'password', 'is_superuser')
     widgets = {
         'user':
         SearchableSelect(model='django_dashboard.User',
                          search_field='username',
                          many=False,
                          limit=1000)
     }
Пример #9
0
 class Meta:
     model = Exchange
     exclude = ()
     widgets = {
         'cities_visited':
         SearchableSelect(model='game.Game',
                          search_field='name',
                          many=True,
                          limit=10)
     }
Пример #10
0
    class Meta:
        model = Teacher
        exclude = ()

        widgets = {
            'skills':
            SearchableSelect(model='teachnet.Skill',
                             search_field='skill_name',
                             many=True,
                             limit=10)
        }
Пример #11
0
 class Meta:
     model = models.Filter
     fields = ['zipcode']
     widget ={
         'zipcode' : SearchableSelect(model=ZipCode,search_field='zipcode')
     }
Пример #12
0
 class Meta:
     model = Unit
     exclude = ()
     widgets = {
         'owner': SearchableSelect(model='users.CustomUser', search_field='full_name', limit=10, many=True, attrs={'placeholder':'Search name'})
     }
Пример #13
0
 class Meta:
   model = Version
   exclude = ()
   widgets = {
     'genes': SearchableSelect(model='genes.Gene', search_field='name', limit=20)
   }