Skip to content

Commit

Permalink
Update to Django 3.2
Browse files Browse the repository at this point in the history
Fixes #16
Closes #25
  • Loading branch information
Hucisko authored and markkuriekkinen committed Dec 16, 2021
1 parent ef14e32 commit 522ab80
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion accounts/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.apps import AppConfig

class AccountsConfig(AppConfig):
name = "radar.accounts"
name = "accounts"
display_name = "Radar accounts"
18 changes: 18 additions & 0 deletions accounts/migrations/0003_alter_radaruser_first_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.4 on 2021-12-09 11:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('accounts', '0002_auto_20180309_0939'),
]

operations = [
migrations.AlterField(
model_name='radaruser',
name='first_name',
field=models.CharField(blank=True, max_length=150, verbose_name='first name'),
),
]
3 changes: 3 additions & 0 deletions radar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,6 @@
INTERNAL_IPS = [
'127.0.0.1',
]

# Django 3.2
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Django ~= 2.2.20
Django ~= 3.2.10
celery >= 5.0.5, < 6
django-bootstrap-form >= 3.4, < 4
oauthlib >= 3.1.0, < 4
requests >= 2.25.1, < 3
git+https://github.com/apluslms/django-lti-login.git@3.1.0#egg=django-lti-login
git+https://github.com/apluslms/django-lti-login.git@3.2.0#egg=django-lti-login==3.2.0
cachetools >= 4.2.1, < 5
raphendyr-django-essentials ~= 1.3.0
git+https://github.com/apluslms/django-essentials.git@1.4.0#egg=django-essentials==1.4.0
git+https://github.com/apluslms/a-plus-client.git@v1.1.0#egg=a_plus_client
python-memcached >= 1.59, < 2
git+https://github.com/apluslms/greedy-string-tiling.git@v0.12.0
django-debug-toolbar >= 3.2
django-debug-toolbar >= 3.2
2 changes: 1 addition & 1 deletion review/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.utils.six import wraps
from six import wraps
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from data.models import Course, Exercise, Student
Expand Down

0 comments on commit 522ab80

Please sign in to comment.