From 4df42ed50355c6069ef35b2f33df6345afc69fec Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Tue, 25 Sep 2018 14:13:25 +0200 Subject: [PATCH] Added git commit and changed model slightly. --- .gitignore | 1 + backend/RateMyCourse/settings.py | 16 ++++++++-------- backend/db.sqlite3 | Bin 139264 -> 139264 bytes backend/postings/models.py | 4 ++++ frontpage/js/load_reviews.js | 0 5 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .gitignore create mode 100644 frontpage/js/load_reviews.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e99e36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc \ No newline at end of file diff --git a/backend/RateMyCourse/settings.py b/backend/RateMyCourse/settings.py index 626db12..73873c8 100644 --- a/backend/RateMyCourse/settings.py +++ b/backend/RateMyCourse/settings.py @@ -106,14 +106,14 @@ AUTH_PASSWORD_VALIDATORS = [ ] REST_FRAMEWORK = { - 'DEFAULT_PERMISSION_CLASSES': ( - 'rest_framework.permissions.IsAuthenticated', - ), - 'DEFAULT_AUTHENTICATION_CLASSES': ( - 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', - 'rest_framework.authentication.SessionAuthentication', - 'rest_framework.authentication.BasicAuthentication', - ), + # 'DEFAULT_PERMISSION_CLASSES': ( + # 'rest_framework.permissions.IsAuthenticated', + # ), + # 'DEFAULT_AUTHENTICATION_CLASSES': ( + # 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', + # 'rest_framework.authentication.SessionAuthentication', + # 'rest_framework.authentication.BasicAuthentication', + # ), } # Internationalization diff --git a/backend/db.sqlite3 b/backend/db.sqlite3 index 6908531aa40fb743d4a42466152f2ce067d90344..3e92540cb4653d9f3e77ea3a021b81d887f0caa7 100644 GIT binary patch delta 237 zcmZoTz|nAkV}dlJ^F$eER%Zs?k2^M|Na{0kHrMHIuhVC2d%(xaugbuGm47jREq^$_ z>Sjd+Vg7mpPId-FHPHnX~~IQ4wqa diff --git a/backend/postings/models.py b/backend/postings/models.py index ffb4422..44c784f 100644 --- a/backend/postings/models.py +++ b/backend/postings/models.py @@ -1,5 +1,9 @@ from django.db import models +class Review(models.Model): + # An integer rating which defines + rating = models.IntegerField(default=1) + # Create your models here. class UniversityReview(models.Model): university_name = models.CharField(max_length=200) diff --git a/frontpage/js/load_reviews.js b/frontpage/js/load_reviews.js new file mode 100644 index 0000000..e69de29