Commit Graph

119 Commits

Author SHA1 Message Date
Sebastian Lohff f4144633d6 Add link to sourcecode to footer 2022-01-22 19:28:12 +01:00
Sebastian Lohff 1f93f9e7bd Dynamically find currently active Contest
Previously we had a lot of hardcoded contest information in the
templates. Name, ruleset and number of contest are now all taken from
the currently active contest and rendered into the templates. Instead of
an URL containing the current contest name, we just use a generic
/contest/. The API will no longer use "the contest with id=1", but the
currently active contest as well.

The currently active contest is - for now - the contest with the latest
deadline.
2022-01-22 19:22:52 +01:00
Sebastian Lohff 7ae53b6150 Set Django to 4.0.1, add DB migrations
Now that we're somewhat Django4 compatible it's time to advertise our
newfound skill! Not all functionality has been tested, but it is
starting again.
2022-01-22 17:35:57 +01:00
Sebastian Lohff 13afffda02 staticfiles template tag libary is called static 2022-01-22 17:35:57 +01:00
Sebastian Lohff 1f39cc5b40 user.is_authenticated is no longer a method
Apparently this is now a property, so we don't need to call it. We can
just use it.
2022-01-22 17:35:57 +01:00
Sebastian Lohff 933a337eac Fix url config for Django4
url() is no longer available, has to be replaced with path() or
re_path(). For proper include() we also need an app_name specified in
the urls.py we're including.
2022-01-22 17:35:57 +01:00
Sebastian Lohff 635289ed8f Set on_delete for all ForeignKey fields
Can't believe this has not been done yet.
2022-01-22 17:35:57 +01:00
Sebastian Lohff 970a3ae517 Remove some python2 --> python3 leftovers
Remove some __future__ imports and the six compability layer (which was
not mentioned in the requirements.txt anyway).
2022-01-22 17:35:57 +01:00
Sebastian Lohff e5465632b4 Pep8 fixes
Reformat codebase a bit so it is easier to work with.
2022-01-22 17:35:57 +01:00
Sebastian Lohff 613cf9c099 Make profile a modelviewset + add /me/ for current profile 2022-01-22 17:27:39 +01:00
Sebastian Lohff fc78b91c51 Reorganize imports of api views.py 2022-01-22 17:27:39 +01:00
Sebastian Lohff 3c6936ba44 Move QSO no validation into model 2022-01-22 17:27:39 +01:00
Sebastian Lohff a7f303e651 Remove broken check from QSO form
The check disallowed having a QSO with any callsign that is also a
reference. Obviously the user should also be able to log this kind
of QSO, even if it might not make sense. We don't judge.
2022-01-22 17:27:39 +01:00
Sebastian Lohff 0c8ba5eb87 Add REST API to webinterface 2022-01-22 17:27:39 +01:00
Sebastian Lohff b528d4dbb4 Add REST API to webinterface 2022-01-22 17:27:39 +01:00
Sebastian Lohff b0d7f9f2ec Allow regTime in user to be blank as well
Without regTime being blank a user with regTime NULL cannot be edited
via the admin interface
2022-01-22 17:27:39 +01:00
Sebastian Lohff c41a30c66b clear_contest: make python3 ready, remove unused import 2022-01-22 17:27:39 +01:00
Sebastian Lohff a00ae715ac Bump django version to 1.11 2022-01-22 17:27:39 +01:00
Sebastian Lohff ba9c99e0ce Move to consistent use of spaces instead of tabs
Required for python3 transition
2022-01-22 17:27:39 +01:00
Sebastian Lohff c9cff07432 Clarify choice of username at registration, again
Apparently it was still unclear to people what call they should use on
registration. Added extra message to explain this further.
2020-01-28 11:24:31 +01:00
Sebastian Lohff efcea4d2df Add registration hints to user landing page 2020-01-20 23:24:22 +01:00
Sebastian Lohff 1f2d34c8b4 Don't error out when newRef already exist, use it instead
Before this commit when a newRef was entered on user registration and
that ref already existed we errored out. Now we use exactly that
reference when it already exists.
2020-01-20 22:52:23 +01:00
Sebastian Lohff 2b42f6cea6 Nr -> No in QSO table, because consistency 2020-01-20 22:48:37 +01:00
Sebastian Lohff 8ad2013fb2 Disable "verbose" log messages 2020-01-20 22:16:43 +01:00
Sebastian Lohff d38c6ada3f Draft for a clear contest script
Script clears calls, users, references and shadow calls from the
database to clean up after the last contest.
2020-01-20 22:14:22 +01:00
Sebastian Lohff 500b79e67a Disable DN/Rig fields on registration for DN calls
When a user enters a call beginning with DN on the registration page we
now disable the DN-call and rig question fields, so we don't confuse
our SWLs.
2020-01-20 22:13:06 +01:00
Sebastian Lohff 2aef677abd Display survey fields in User admin page 2019-01-31 19:45:49 +01:00
Sebastian Lohff 89eb979de3 Add requirements.txt for installation 2019-01-26 12:45:38 +01:00
Sebastian Lohff 9faf9c9ce0 Add E-Mail field to user registration 2019-01-26 12:45:15 +01:00
Sebastian Lohff b0316dc797 Add missing label/helptext 2019-01-24 23:26:31 +01:00
Sebastian Lohff 952f0aa546 Add extra fields to registration 2019-01-24 23:18:36 +01:00
Sebastian Lohff 8cc6c3cbff Missing DB fields for user questionaire 2019-01-23 00:51:07 +01:00
Sebastian Lohff a58a15984e Add missing db migrations 2019-01-23 00:43:44 +01:00
Sebastian Lohff df02a28776 Interface rebrand CQTU FM 2019! 2019-01-22 21:48:09 +01:00
Sebastian Lohff e358da596b Hardcoded reference cleaning 2019-01-22 21:48:09 +01:00
Sebastian Lohff c188dda016 Remove unnecessary fields, add ignore bandcheck, stuff 2019-01-22 21:48:09 +01:00
Sebastian Lohff dd58c56e64 Ignore settings.py 2019-01-22 21:48:09 +01:00
Sebastian Lohff b74da62c30 Simplified password check at registration
Everyone was complaining, everything was on fire!
2019-01-22 21:48:09 +01:00
Sebastian Lange (DL7BST) 930eba601d + README 2019-01-18 15:14:29 +01:00
Sebastian Lohff 9db317e625 Fixed band parsing in cbrparser 2017-02-05 13:31:42 +01:00
Sebastian Lohff a79269c65d Far better QSO crosschecking 2017-02-03 19:17:29 +01:00
Sebastian Lohff f960f6919d Actually save user password on account registration 2017-02-03 01:04:06 +01:00
Sebastian Lohff 888d33cc42 Fixed QSO editing 2017-02-02 20:20:41 +01:00
Sebastian Lohff 0bf443035d Removed rendundant contest rule link 2017-02-01 18:39:54 +01:00
Sebastian Lohff 2d7ec5542f Index cleanup, html-rm'd witty bst comment 2017-02-01 18:38:21 +01:00
Sebastian Lohff 2f8fddd5da Wrote down some contest rules, link to rules pdf 2017-02-01 18:29:29 +01:00
Sebastian Lohff de2a8ebb12 Fixed layout on contest:index page 2017-02-01 18:29:19 +01:00
Sebastian Lohff bf685e392c TODO update 2017-01-28 19:11:44 +01:00
Sebastian Lohff 0c69ee13b1 Template cleanup 2017-01-28 19:10:40 +01:00
Sebastian Lohff f5cf3ac368 Calculate points 2017-01-28 18:39:41 +01:00