Eine Menge Aufräumarbeiten.
* Eine Testsuite um Mahrjong Ranking Berechnungen zu testen * Erste Arbeiten um die Workarounds aus dem "utils" Paket los zu werden. * Vieles am Code umformatiert für PEP8 conformität
This commit is contained in:
@@ -12,10 +12,14 @@ from mahjong_ranking.models import KyuDanRanking, SeasonRanking
|
||||
from utils import mixins
|
||||
from . import forms, models
|
||||
RECAPTCHA_CSP = {
|
||||
'SCRIPT_SRC': ['https://www.google.com/recaptcha/', 'https://www.gstatic.com/recaptcha/'],
|
||||
'FRAME_SRC': 'https://www.google.com/recaptcha/',
|
||||
'STYLE_SRC': "'unsafe-inline'"
|
||||
'SCRIPT_SRC': (
|
||||
'https://www.google.com/recaptcha/',
|
||||
'https://www.gstatic.com/recaptcha/'
|
||||
),
|
||||
'CHILD_SRC': ('https://www.google.com/recaptcha/',)
|
||||
}
|
||||
|
||||
|
||||
class ActivateRegistration(generic.DetailView):
|
||||
"""
|
||||
Activates the Registration of an User and logs him in
|
||||
|
||||
Reference in New Issue
Block a user