Added git commit and changed model slightly.
This commit is contained in:
parent
1b501f66d4
commit
4df42ed503
|
@ -0,0 +1 @@
|
||||||
|
*.pyc
|
|
@ -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.
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue