Compare commits

..

18 Commits

Author SHA1 Message Date
Sebastian Lohff fcd22f8231 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:18:25 +01:00
Sebastian Lohff 0bd545a183 staticfiles template tag libary is called static 2022-01-22 17:17:12 +01:00
Sebastian Lohff 8308a883cd 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:16:43 +01:00
Sebastian Lohff 0ca4c2399f 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:11:10 +01:00
Sebastian Lohff c121e874c6 Set on_delete for all ForeignKey fields
Can't believe this has not been done yet.
2022-01-22 16:54:13 +01:00
Sebastian Lohff 0178fcb3ef 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 16:47:07 +01:00
Sebastian Lohff ff94b62212 Pep8 fixes
Reformat codebase a bit so it is easier to work with.
2022-01-22 16:43:48 +01:00
Sebastian Lohff 94d2f5a8d8 Make profile a modelviewset + add /me/ for current profile 2020-03-17 20:25:39 +01:00
Sebastian Lohff 59a4c73bd0 Reorganize imports of api views.py 2020-03-17 20:24:16 +01:00
Sebastian Lohff c43c5c1e10 Move QSO no validation into model 2020-02-08 22:49:14 +01:00
Sebastian Lohff e049e45698 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.
2020-02-08 22:49:14 +01:00
Sebastian Lohff e825685105 Add REST API to webinterface 2020-02-08 22:42:26 +01:00
Sebastian Lohff ddb09d148e Add REST API to webinterface 2020-02-08 22:35:24 +01:00
Sebastian Lohff 782f5cbe32 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
2020-02-08 22:35:24 +01:00
Sebastian Lohff 99ab46272b 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-02-08 22:35:24 +01:00
Sebastian Lohff 92007bab02 clear_contest: make python3 ready, remove unused import 2020-02-08 22:35:24 +01:00
Sebastian Lohff 9efdeda3c6 Bump django version to 1.11 2020-02-08 22:35:24 +01:00
Sebastian Lohff 4b8a444f1f Move to consistent use of spaces instead of tabs
Required for python3 transition
2020-01-26 11:36:47 +01:00

Diff Content Not Available