Commit 338f3476 authored by Charles Lim's avatar Charles Lim

Added redirect url for homepage

parent fd2fd8e6
from audioop import reverse
from tkinter import Widget from tkinter import Widget
from django.shortcuts import render from django.shortcuts import render, redirect
from django.views import View from django.views import View
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView from django.views.generic.edit import CreateView
...@@ -22,3 +23,6 @@ class WidgetUserCreateView(CreateView): ...@@ -22,3 +23,6 @@ class WidgetUserCreateView(CreateView):
model = WidgetUser model = WidgetUser
fields = ["first_name", "middle_name", "last_name", fields = ["first_name", "middle_name", "last_name",
"id_num", "email", "profile_pic", "department"] "id_num", "email", "profile_pic", "department"]
def get_success_url(self):
return "/homepage/"
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