QS 0.9.1 PORD

This commit is contained in:
Holger Trampe 2020-05-31 14:44:44 +02:00
parent 5efe4f7e7f
commit 7eb71b084f
4 changed files with 6 additions and 2 deletions

View File

@ -170,7 +170,11 @@ LOGIN_URL = 'login'
STATIC_URL = '/static/'
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) + '/..'
STATIC_ROOT = (os.path.join(SITE_ROOT, 'users/static/'))
#STATIC_ROOT = (os.path.join(SITE_ROOT, 'users/static/'))
STATICFILES_DIRS = (
os.path.join(SITE_ROOT, 'users/static/'),
)
# CRISPY
CRISPY_TEMPLATE_PACK = 'bootstrap4'

View File

@ -511,7 +511,7 @@ def getUserIsRep(user):
@register.simple_tag
def startdatecheck(usertocheck, day):
uertime = list(UserTime.objects.filter(user=usertocheck))[0]
if uertime.startdate < day:
return True
else: