Rule -> Policies
This commit is contained in:
		| @ -1,4 +1,4 @@ | ||||
| # Generated by Django 2.1.3 on 2018-11-25 10:39 | ||||
| # Generated by Django 2.1.7 on 2019-02-16 09:13 | ||||
|  | ||||
| import django.db.models.deletion | ||||
| import oauth2_provider.generators | ||||
| @ -15,8 +15,8 @@ class Migration(migrations.Migration): | ||||
|     ] | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('passbook_core', '0001_initial'), | ||||
|         migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||||
|         ('passbook_core', '0001_initial'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
| @ -36,7 +36,8 @@ class Migration(migrations.Migration): | ||||
|                 ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='passbook_oauth_provider_oauth2provider', to=settings.AUTH_USER_MODEL)), | ||||
|             ], | ||||
|             options={ | ||||
|                 'abstract': False, | ||||
|                 'verbose_name': 'OAuth2 Provider', | ||||
|                 'verbose_name_plural': 'OAuth2 Providers', | ||||
|             }, | ||||
|             bases=('passbook_core.provider', models.Model), | ||||
|         ), | ||||
|  | ||||
| @ -1,17 +0,0 @@ | ||||
| # Generated by Django 2.1.3 on 2018-11-26 15:14 | ||||
|  | ||||
| from django.db import migrations | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('passbook_oauth_provider', '0001_initial'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterModelOptions( | ||||
|             name='oauth2provider', | ||||
|             options={'verbose_name': 'OAuth2 Provider', 'verbose_name_plural': 'OAuth2 Providers'}, | ||||
|         ), | ||||
|     ] | ||||
| @ -29,7 +29,7 @@ class OAuthPermissionDenied(PermissionDeniedView): | ||||
|  | ||||
|  | ||||
| class PassbookAuthorizationView(AccessMixin, AuthorizationView): | ||||
|     """Custom OAuth2 Authorization View which checks rules, etc""" | ||||
|     """Custom OAuth2 Authorization View which checks policies, etc""" | ||||
|  | ||||
|     _application = None | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer