from django import forms
from .models import Event
from django.contrib.auth.models import User

# This is the form used to create the event


class CreateEventForm(forms.ModelForm):
    class Meta:
        model = Event
        fields = ['event_name', 'upload_photo', 'event_address','created_at','event_date']

    event_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))

    upload_photo = forms.FileField()
    event_address = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))
    created_at = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))
    event_date = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)

    # Meta class stores information about my class
    class Meta:
        model = User
        fields= ['username', 'email', 'password']
00ed1f6feb2583199aa507b798a4b8941fcba252
<mask token>


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)


    class Meta:
        model = User
        fields = ['username', 'email', 'password']

<mask token>


class CreateEventForm(forms.ModelForm):


    class Meta:
        model = Event
        fields = ['event_name', 'upload_photo', 'event_address',
            'created_at', 'event_date']
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)


    class Meta:
        model = User
        fields = ['username', 'email', 'password']

<mask token>


class CreateEventForm(forms.ModelForm):


    class Meta:
        model = Event
        fields = ['event_name', 'upload_photo', 'event_address',
            'created_at', 'event_date']
    event_name = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    upload_photo = forms.FileField()
    event_address = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    created_at = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    event_date = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)


    class Meta:
        model = User
        fields = ['username', 'email', 'password']

from django import forms
from .models import Event
from django.contrib.auth.models import User


class CreateEventForm(forms.ModelForm):


    class Meta:
        model = Event
        fields = ['event_name', 'upload_photo', 'event_address',
            'created_at', 'event_date']
    event_name = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    upload_photo = forms.FileField()
    event_address = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    created_at = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))
    event_date = forms.CharField(widget=forms.TextInput(attrs={'class':
        'form-control'}))


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)


    class Meta:
        model = User
        fields = ['username', 'email', 'password']

from django import forms
from .models import Event
from django.contrib.auth.models import User

# This is the form used to create the event


class CreateEventForm(forms.ModelForm):
    class Meta:
        model = Event
        fields = ['event_name', 'upload_photo', 'event_address','created_at','event_date']

    event_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))

    upload_photo = forms.FileField()
    event_address = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))
    created_at = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))
    event_date = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)

    # Meta class stores information about my class
    class Meta:
        model = User
        fields= ['username', 'email', 'password']