Commit graph

177 commits

Author SHA1 Message Date
4fcd9ae154 Improved subject selection in django admin for custom user 2023-09-12 20:06:41 +08:00
df2f172813 Improved customuser admin.py 2023-09-12 19:57:39 +08:00
aeecd1a77c Fixed admin page for customuser 2023-09-12 19:55:05 +08:00
66fdc16524 Implemented redis caching for GET only viewsets 2023-09-12 19:51:06 +08:00
0215680ea5 Fixed issue of not connecting to redis instance and added caching for courses 2023-09-12 19:42:32 +08:00
7053f1d487 Improved docker related files and added redis server for django channels 2023-09-12 19:26:37 +08:00
8d88424159 Use own hosted osm tileserver for admin 2023-09-09 20:48:02 +08:00
122938a8b5 Added throttling rates 2023-09-06 20:41:15 +08:00
fc031e9e51 Changed foreign key field value to reference the required string directly rather than id from StudentStatus and CustomUser with Subjects 2023-09-06 18:13:21 +08:00
63d16eae17 Final changes to subject and subject instance serializer for easier queries 2023-09-04 18:18:08 +08:00
6fe1042826 Initial fix for duplicate subject queries in student status 2023-09-03 17:46:36 +08:00
451c5ec00b Made improvements to student status serializer 2023-09-02 13:57:23 +08:00
813734582a Increased JWT time to expire and improved student status serializer 2023-09-02 13:46:51 +08:00
49afdc981f Improved serializers for filtering nearby students studying 2023-09-02 13:24:55 +08:00
0436f8082f Added initial serializers for filtering student statuses 2023-09-01 14:09:19 +08:00
4a96774ba8 Add formatted timestamp to student status serializer 2023-08-15 18:53:10 +08:00
cc52931956 Fixed subject names still having \r symbols in them and fixed student status list view not working 2023-08-15 14:14:26 +08:00
e734afd631 Improved student status serializer 2023-08-15 00:45:00 +08:00
f6f87415d5 Fixed custom user serializer 2023-08-10 17:11:34 +08:00
f6ebd91f85 Simplified the status serializer 2023-08-07 15:37:47 +08:00
9902c0fc14 Improved student status serializer 2023-08-07 15:36:37 +08:00
3df8aed143 Improved student status serializer 2023-08-07 15:16:57 +08:00
e79671b9b9 Student status serializer improvements 2023-08-06 14:35:39 +08:00
06441702c7 CustomUser and StudentStatus improvements 2023-08-06 14:19:55 +08:00
c57a6bd499 Cleaned up some comments 2023-08-04 00:17:08 +08:00
194e33db61 Fixed JWT token lifetime 2023-08-02 15:48:45 +08:00
1beaf909f0 Simplified GDAL import 2023-07-28 19:38:33 +08:00
4697bee70f Fixed mismatches in python versions 2023-07-28 18:41:18 +08:00
e9d4090713 Added avatar profile uploads 2023-07-27 16:00:24 +08:00
fd2563aff9 Added some schema fields for drf-spectacular 2023-07-27 00:43:31 +08:00
a608db275c Updated schema 2023-07-27 00:17:35 +08:00
accf87e332 Subject selection improvement in admin panel and for irregular students 2023-07-27 00:10:53 +08:00
0fd790505e Major overhaul to subject model and serializers 2023-07-26 23:32:03 +08:00
0eff07a1ae Overhauled the entire subjects app to be more simplified and to remove anomalies when filtering in queries 2023-07-26 12:14:19 +08:00
83b817ec35 Improved subject viewset 2023-07-25 17:03:05 +08:00
8537b1d3ac Improved subject viewsets and subjects postmigration script 2023-07-25 16:29:11 +08:00
6af2bd0c0d Migrate to DRF-Spectacular instead of drf-yasg 2023-07-25 15:12:53 +08:00
c955cadc18 Fixed subject serializer and added drf-yasg for better endpoint documentation 2023-07-24 01:47:01 +08:00
a33b32436d Code improvements 2023-07-23 23:24:30 +08:00
813ca3eb82 Warn if course has no shortname 2023-07-23 23:22:39 +08:00
890ba80db4 Polished postmigration scripts 2023-07-23 23:20:03 +08:00
97374442f7 Polished postmigration scripts 2023-07-23 23:19:47 +08:00
80f8aa5d66 Auto add courses post-migration based on csv records that we have 2023-07-23 23:15:52 +08:00
f550134998 Added debug mode for frontend to handle email activation link changes 2023-07-23 22:36:19 +08:00
a2d1fb8081 Added records for computer engineering 2023-07-20 17:19:43 +08:00
b9957eec9e Improved subjects postmigration print log 2023-07-19 22:51:23 +08:00
c6237ad9b1 Exclude records in media folder from gitignore 2023-07-19 15:52:25 +08:00
c5e1f0dc49 Optimized subjects adding postmigration for better code readability 2023-07-19 15:50:47 +08:00
84e33d7ca6 Skip updating a subject if it already exists with the same year level, semester, and course postmigration 2023-07-19 15:43:38 +08:00
1c35e95f21 Improved subjects serializer 2023-07-19 15:36:06 +08:00
3f136f8cef Improved subjects model and serializer 2023-07-19 15:24:59 +08:00
3748b4d2c8 Improved user registration serializer 2023-07-19 02:38:35 +08:00
bf9ed11a9e Improved code for uupdating course year level and semester for student and for postmigration generation of subjects per course 2023-07-18 22:15:42 +08:00
41b2747495 Improved code for uupdating course year level and semester for student and for postmigration generation of subjects per course 2023-07-18 22:13:31 +08:00
33e8218e51 Automatically add subjects based on a .csv file 2023-07-18 20:25:03 +08:00
c10ef2d784 Auto subject adding/dropping when changing year level, semester, or course 2023-07-18 17:56:23 +08:00
db8fd8642f Add debug student account on migrate and added subjects to user serializer 2023-07-18 16:01:19 +08:00
e6c4dd7b9c Removed associative entity between student and subject 2023-07-18 15:51:06 +08:00
8a42b58f87 Fixed subjectstudent model 2023-07-18 15:22:17 +08:00
2c131489bc Improved student serializer 2023-07-18 00:36:13 +08:00
95cbd88fd8 Improved student serializer 2023-07-18 00:35:41 +08:00
eb26533dcd Improved subject model 2023-07-17 21:23:27 +08:00
e8693547cf Omit student_status from user serializer 2023-07-17 18:42:40 +08:00
fd08e3c58a Change profile photo filename 2023-07-15 00:01:51 +08:00
447b034d38 Improved study_groups geofencing in serializer 2023-07-14 23:56:24 +08:00
a67ea5cd8a Implemented geofencing logic for student_status and study_groups with landmark labels 2023-07-14 23:55:54 +08:00
toledo
7938c3ceef Added Additional Landmarks 2023-07-14 20:47:13 +08:00
abed03617e Rename def for adding landmarks 2023-07-11 15:06:09 +08:00
89087f8566 Use SRID 2023-07-11 15:05:38 +08:00
6e357defcf Improved landmarks view and added prefilled in landmarks 2023-07-11 15:03:42 +08:00
ba7e79cdc2 Moved subject course associative entity to subjects app 2023-07-10 17:35:54 +08:00
8d9364274c Added some needed string definitions for django admin and moved study groups to leaflet 2023-07-10 17:20:15 +08:00
54347f5e26 Center leaflet map to ustp by default 2023-07-10 17:07:08 +08:00
166d586fc2 Use leaflet for handling of locations in django admin 2023-07-10 17:06:43 +08:00
1fc262a530 Added custom_migrate command to simplify migrating with spatialite backend 2023-07-09 21:20:09 +08:00
4c3b8763a8 Readded permission class 2023-07-09 19:18:21 +08:00
a285d9ebb0 Improved OSGeo4W import 2023-07-09 19:12:36 +08:00
1f960aeaac Added missing OSGeo4W import 2023-07-09 19:07:33 +08:00
98177f7235 Migrated location fields to new format. Also fixed student_status serializer 2023-07-09 19:00:47 +08:00
14d99fc7c2 Migrate backend to sqlite spatialite 2023-07-09 17:30:00 +08:00
8e202305b3 Make JWT tokens last longer 2023-07-07 18:34:11 +08:00
07c57238a9 Fixed study group message serializer 2023-07-07 01:25:15 +08:00
288a1edd5e Improved serializers 2023-07-06 21:47:28 +08:00
a67d8ae106 Fixed superuser being created as inactive user 2023-07-06 18:15:41 +08:00
5f157d83b9 Fixed typo in email activation template 2023-07-06 17:33:35 +08:00
ac268cb4c8 Improved custom user serializer 2023-07-04 20:49:28 +08:00
1e83f74217 Improved CustomUserSerializer 2023-07-04 20:34:12 +08:00
5840d3f95c Make users not active by default, requiring email activation 2023-07-04 19:36:29 +08:00
267e331be7 Polished email template and django admin for custom user 2023-07-04 19:22:21 +08:00
f6cbe1941e Fixed integrity issues with on_delete for customuser 2023-07-04 18:06:47 +08:00
9196bfa602 Remove authtoken from django admin since we are now using JWT 2023-07-04 16:59:18 +08:00
a7d5cdd56e Switch to JSON web token and set default host to 0.0.0.0 2023-07-03 23:19:03 +08:00
e567b5d399 Fixed user serializer still using django default user 2023-07-03 21:22:06 +08:00
05d9dbd296 Polished student_status serializer 2023-07-01 16:09:20 +08:00
4b20812021 Added websocket endpoint for student statuses 2023-07-01 15:47:28 +08:00
fcd941a80f Switch from Django channels to Django rest channels 2023-07-01 12:01:57 +08:00
88d838c5d8 Installed Django channels and Daphne 2023-07-01 11:40:49 +08:00
e02d81f6fd Added relationship between user and subjects 2023-06-28 17:12:14 +08:00
dc21bb8c32 Polish study group messages 2023-06-28 01:18:37 +08:00
fbe047e8a2 Painstakingly added an endpoint to show messages from the current study group of the user 2023-06-28 00:49:11 +08:00