From 9af691f8caf92838d247037990cc51b7e647942e Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Tue, 19 Nov 2019 03:32:21 +0100 Subject: [PATCH] Add ranks and auto-attendance. Soft-resets migrations. --- drakul/base/settings/common.py | 5 +++ drakul/base/templates/base.html | 2 +- drakul/raids/migrations/0001_initial.py | 4 +- ...025_1323.py => 0002_auto_20191119_0310.py} | 4 +- drakul/raids/models.py | 13 ++++-- drakul/users/admin.py | 14 +++++-- drakul/users/migrations/0001_initial.py | 24 +++++++++-- .../migrations/0002_create_default_ranks.py | 26 ++++++++++++ ...2_create_admin.py => 0003_create_admin.py} | 6 ++- drakul/users/models.py | 40 ++++++++++++------- drakul/users/templates/users/user_list.html | 37 ++++++++++++----- drakul/users/views.py | 16 +++++++- 12 files changed, 148 insertions(+), 43 deletions(-) rename drakul/raids/migrations/{0002_auto_20191025_1323.py => 0002_auto_20191119_0310.py} (96%) create mode 100644 drakul/users/migrations/0002_create_default_ranks.py rename drakul/users/migrations/{0002_create_admin.py => 0003_create_admin.py} (81%) diff --git a/drakul/base/settings/common.py b/drakul/base/settings/common.py index 6cc3556..884bda6 100755 --- a/drakul/base/settings/common.py +++ b/drakul/base/settings/common.py @@ -155,3 +155,8 @@ SITE_ID = 1 # Crispy Forms CRISPY_TEMPLATE_PACK = "bootstrap4" + + +# Drakul +DEFAULT_ATTENDANCE_ATTENDING = 1.0 +DEFAULT_ATTENDANCE_NOT_ATTENDING = 0.0 diff --git a/drakul/base/templates/base.html b/drakul/base/templates/base.html index 6b08312..2c399f0 100644 --- a/drakul/base/templates/base.html +++ b/drakul/base/templates/base.html @@ -23,7 +23,7 @@