from django import forms
from .models import Event, Person, Scanner


class EventForm(forms.ModelForm):

    class Meta:
        model = Event
        fields = ('initiator', 'buddy', 'location', 'base')


class PersonForm(forms.ModelForm):

    class Meta:
        model = Person
        fields = '__all__'


class ScannerForm(forms.ModelForm):

    class Meta:
        model = Scanner
        fields = ('barcode',)
