registration fixes

This commit is contained in:
Alicja Cięciwa
2020-11-15 13:32:50 +01:00
parent 0525450a90
commit 3ffce6c7c3
15 changed files with 117 additions and 63 deletions

View File

@@ -1,10 +1,16 @@
from django.http import HttpResponseRedirect
from django.shortcuts import render
from work.forms import HoursInputForm
from django.contrib.auth.decorators import login_required
#
# @login_required
# def index(request):
# return render(request,'registration/login.html')
@login_required
def get_basic_workdata(request):
title = None
title = "Godziny"
if request.method == 'POST':
form = HoursInputForm(request.POST)
if form.is_valid():