django-oidc-provider/oidc_provider/migrations/0006_unique_user_client.py
Sjoerd Langkemper 2fc4c138b3 Make (user, client) unique on UserConsent
We assume this combination is unique with our get and get_or_create
calls.
2015-11-10 11:29:05 +01:00

18 lines
386 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('oidc_provider', '0005_token_refresh_token'),
]
operations = [
migrations.AlterUniqueTogether(
name='userconsent',
unique_together=set([('user', 'client')]),
),
]