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), }
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) }
class Meta: model = Character exclude = () widgets = { 'char_classes': SearchableSelect(model='rules.Class', search_field='name', many=True) }
class Meta: model = CardInDeck exclude = () widgets = { 'card': SearchableSelect(model='deck.Card', search_field='text', many=False), }
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) }
class Meta: model = Question exclude = ('', ) widgets = { 'syllabuspoint': SearchableSelect(model='tracker.SyllabusPoint', search_field='syllabusText', many=True, limit=10) }
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(), }
class Meta: model = UserDetail exclude = ('email', 'password', 'is_superuser') widgets = { 'user': SearchableSelect(model='django_dashboard.User', search_field='username', many=False, limit=1000) }
class Meta: model = Exchange exclude = () widgets = { 'cities_visited': SearchableSelect(model='game.Game', search_field='name', many=True, limit=10) }
class Meta: model = Teacher exclude = () widgets = { 'skills': SearchableSelect(model='teachnet.Skill', search_field='skill_name', many=True, limit=10) }
class Meta: model = models.Filter fields = ['zipcode'] widget ={ 'zipcode' : SearchableSelect(model=ZipCode,search_field='zipcode') }
class Meta: model = Unit exclude = () widgets = { 'owner': SearchableSelect(model='users.CustomUser', search_field='full_name', limit=10, many=True, attrs={'placeholder':'Search name'}) }
class Meta: model = Version exclude = () widgets = { 'genes': SearchableSelect(model='genes.Gene', search_field='name', limit=20) }