59 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 3.1 on 2020-08-18 18:16
 | 
						|
 | 
						|
import django.core.validators
 | 
						|
import django.db.models.deletion
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    initial = True
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ("passbook_providers_oauth2", "0001_initial"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.CreateModel(
 | 
						|
            name="ProxyProvider",
 | 
						|
            fields=[
 | 
						|
                (
 | 
						|
                    "oauth2provider_ptr",
 | 
						|
                    models.OneToOneField(
 | 
						|
                        auto_created=True,
 | 
						|
                        on_delete=django.db.models.deletion.CASCADE,
 | 
						|
                        parent_link=True,
 | 
						|
                        primary_key=True,
 | 
						|
                        serialize=False,
 | 
						|
                        to="passbook_providers_oauth2.oauth2provider",
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
                (
 | 
						|
                    "internal_host",
 | 
						|
                    models.TextField(
 | 
						|
                        validators=[
 | 
						|
                            django.core.validators.URLValidator(
 | 
						|
                                schemes=("http", "https")
 | 
						|
                            )
 | 
						|
                        ]
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
                (
 | 
						|
                    "external_host",
 | 
						|
                    models.TextField(
 | 
						|
                        validators=[
 | 
						|
                            django.core.validators.URLValidator(
 | 
						|
                                schemes=("http", "https")
 | 
						|
                            )
 | 
						|
                        ]
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
            ],
 | 
						|
            options={
 | 
						|
                "verbose_name": "Proxy Provider",
 | 
						|
                "verbose_name_plural": "Proxy Providers",
 | 
						|
            },
 | 
						|
            bases=("passbook_providers_oauth2.oauth2provider",),
 | 
						|
        ),
 | 
						|
    ]
 |