Skip to content
Snippets Groups Projects
Unverified Commit 27920e6e authored by Jeremy Bowman's avatar Jeremy Bowman Committed by GitHub
Browse files

Merge pull request #18493 from edx/jmbowman/TE-2629

TE-2629 Use better field type for applicationaccess.application
parents e5780fe9 809f3d51
Branches
Tags
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-29 18:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('oauth_dispatch', '0004_auto_20180626_1349'),
]
operations = [
migrations.AlterField(
model_name='applicationaccess',
name='application',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='access', to=settings.OAUTH2_PROVIDER_APPLICATION_MODEL),
),
]
......@@ -58,7 +58,7 @@ class ApplicationAccess(models.Model):
Specifies access control information for the associated Application.
"""
application = models.ForeignKey(oauth2_settings.APPLICATION_MODEL, unique=True, related_name='access')
application = models.OneToOneField(oauth2_settings.APPLICATION_MODEL, related_name='access')
scopes = ListCharField(
base_field=models.CharField(max_length=32),
size=25,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment