Commit aeb53eca authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

Created forms.py and add integration with views.py

parent da444b13
from django import forms
from .models import Event
class AddEventForm(forms.ModelForm):
class Meta:
model = Event
from django.shortcuts import render, redirect
from django.views.generic import DetailView, CreateView, UpdateView
from .models import Event, Location
from .models import Event
from .forms import AddEventForm
# calendar view for FBV implmentation
def calendar_view(request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment