Added git commit and changed model slightly.

This commit is contained in:
Andrew Lalis 2018-09-25 14:13:25 +02:00
parent 1b501f66d4
commit 4df42ed503
5 changed files with 13 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

View File

@ -106,14 +106,14 @@ AUTH_PASSWORD_VALIDATORS = [
] ]
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': ( # 'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated', # 'rest_framework.permissions.IsAuthenticated',
), # ),
'DEFAULT_AUTHENTICATION_CLASSES': ( # 'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_jwt.authentication.JSONWebTokenAuthentication', # 'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.SessionAuthentication', # 'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication', # 'rest_framework.authentication.BasicAuthentication',
), # ),
} }
# Internationalization # Internationalization

Binary file not shown.

View File

@ -1,5 +1,9 @@
from django.db import models from django.db import models
class Review(models.Model):
# An integer rating which defines
rating = models.IntegerField(default=1)
# Create your models here. # Create your models here.
class UniversityReview(models.Model): class UniversityReview(models.Model):
university_name = models.CharField(max_length=200) university_name = models.CharField(max_length=200)

View File