class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Backup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', private_storage.fields.PrivateFileField( storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_backup, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_backup_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_backup_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Backup', 'verbose_name_plural': 'Backups', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, unique=True)), ('description', models.TextField(blank=True, max_length=100)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, upload_to='images/')), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_group_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_group_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Group', 'verbose_name_plural': 'Groups', 'ordering': ['name'], }, ), migrations.CreateModel( name='Guide', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('guide', ckeditor_uploader.fields.RichTextUploadingField( blank=True, null=True, verbose_name='Text')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_guide, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_guide_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_guide_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Guide', 'verbose_name_plural': 'Guides', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='HistoricalKey', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', encrypted_model_fields.fields.EncryptedCharField( blank=True, null=True, verbose_name='Password')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', models.TextField(blank=True, max_length=100, null=True, verbose_name='File')), ('slug', models.SlugField()), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_date', models.DateTimeField()), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('created_by', models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('last_modified_by', models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical Key', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='Key', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', encrypted_model_fields.fields.EncryptedCharField( blank=True, null=True, verbose_name='Password')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_key, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_key_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_key_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Key', 'verbose_name_plural': 'Keys', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='Set', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('description', models.TextField(blank=True, max_length=100)), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_set_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Group')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_set_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Set', 'verbose_name_plural': 'Sets', 'ordering': ['name'], }, ), migrations.CreateModel( name='Survey', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('survey', ckeditor_uploader.fields.RichTextUploadingField( blank=True, null=True, verbose_name='Text')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_survey, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_survey_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_survey_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('set', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Set')), ], options={ 'verbose_name': 'Survey', 'verbose_name_plural': 'Surveys', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyDevice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Name')), ('ip', models.IntegerField(blank=True, null=True, verbose_name='Ip')), ('connection', models.CharField(blank=True, max_length=50, null=True, verbose_name='Connection')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Password')), ('type', models.CharField(blank=True, max_length=50, null=True, verbose_name='Type')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveydevice_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveydevice_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey Server', 'verbose_name_plural': 'Surveys Servers', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyGeneral', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('number', models.CharField(max_length=50, verbose_name='Name')), ('responsable', models.CharField(blank=True, max_length=50, null=True, verbose_name='Responsable')), ('company', models.CharField(blank=True, max_length=50, null=True, verbose_name='Company')), ('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='Address')), ('telephone', models.CharField(blank=True, max_length=50, null=True, verbose_name='Telephone')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('webpage', models.CharField(blank=True, max_length=50, null=True, verbose_name='Webpage')), ('person_incharge', models.CharField(blank=True, max_length=50, null=True, verbose_name='Person in charge')), ('workhours', models.CharField(blank=True, max_length=50, null=True, verbose_name='Workhours')), ('downtime', models.CharField(blank=True, max_length=50, null=True, verbose_name='Downtime')), ('business_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Business Name')), ('tax_residence', models.CharField(blank=True, max_length=50, null=True, verbose_name='Tax Residence')), ('cuit', models.CharField(blank=True, max_length=50, null=True, verbose_name='CUIT')), ('category', models.CharField(blank=True, max_length=50, null=True, verbose_name='Category')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observation')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveygeneral_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveygeneral_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey General', 'verbose_name_plural': 'Surveys Generals', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyServer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Name')), ('ip', models.IntegerField(blank=True, null=True, verbose_name='Ip')), ('connection', models.CharField(blank=True, max_length=50, null=True, verbose_name='Connection')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Password')), ('services', models.CharField(blank=True, max_length=50, null=True, verbose_name='Services')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyserver_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyserver_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey Server', 'verbose_name_plural': 'Surveys Servers', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('first_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Last Name')), ('Department', models.CharField(blank=True, max_length=50, null=True, verbose_name='Department')), ('job_title', models.CharField(blank=True, max_length=50, null=True, verbose_name='Job Title')), ('phone_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Phone Number')), ('intern_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Intern Number')), ('country', models.CharField(blank=True, max_length=50, null=True, verbose_name='Country')), ('city', models.CharField(blank=True, max_length=50, null=True, verbose_name='City')), ('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='Address')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observations')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyuser_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyuser_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey User', 'verbose_name_plural': 'Surveys Users', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyWorkStation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('number', models.CharField(max_length=50, verbose_name='Name')), ('first_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Last Name')), ('charge', models.CharField(blank=True, max_length=50, null=True, verbose_name='Charge')), ('telephone', models.CharField(blank=True, max_length=50, null=True, verbose_name='Telephone')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('user_location', models.CharField(blank=True, max_length=50, null=True, verbose_name='User Location')), ('files_location', models.CharField(blank=True, max_length=50, null=True, verbose_name='Files Location')), ('windows_username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Username')), ('windows_password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Password')), ('windows_version', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Version')), ('software_additional', models.CharField(blank=True, max_length=50, null=True, verbose_name='Software Additional')), ('email_type', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email Type')), ('server_connections', models.CharField(blank=True, max_length=50, null=True, verbose_name='Server Connections')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observation')), ('slug', models.SlugField()), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyworkstation_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyworkstation_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey WorkStation', 'verbose_name_plural': 'Surveys WorkStations', 'ordering': ['last_modified_at'], }, ), migrations.AddField( model_name='key', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), migrations.AddField( model_name='historicalkey', name='set', field=models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='core.Set'), ), migrations.AddField( model_name='guide', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), migrations.AddField( model_name='backup', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('who_is', models.CharField(choices=[('ST', 'Student'), ('TE', 'Teacher')], default='TE', max_length=2)), ('name', models.CharField(max_length=255)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', core.models.CustomUserManager()), ], ), migrations.CreateModel( name='Content', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('content', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('thumb', models.CharField(max_length=255)), ('created_date', models.DateTimeField(auto_now_add=True)), ('price', models.DecimalField(decimal_places=2, max_digits=8)), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='courses', to='core.User')), ], ), migrations.CreateModel( name='DiscountCoupon', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('discount_type', models.CharField(choices=[('PPR', 'Per Price'), ('PPE', 'Per Percentage')], default='PPR', max_length=3)), ('value', models.DecimalField(decimal_places=2, max_digits=8)), ('expiration_date', models.DateField()), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='discount_coupons', to='core.Course')), ], ), migrations.CreateModel( name='Lecture', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('thumb', models.CharField(max_length=255)), ('created_date', models.DateTimeField(auto_now_add=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lectures', to='core.Course')), ], ), migrations.CreateModel( name='Subscription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(choices=[('PA', 'Paid'), ('PE', 'Pending')], default='PE', max_length=2)), ('price', models.DecimalField(decimal_places=2, max_digits=8)), ('is_favorite', models.BooleanField(default=False)), ('rating', models.DecimalField(decimal_places=1, default=0, max_digits=2)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='core.Course')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='core.User')), ], ), migrations.AddField( model_name='content', name='course', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='contents', to='core.Course'), ), migrations.AddField( model_name='user', name='contents', field=models.ManyToManyField(to='core.Content'), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( blank=True, error_messages={ b'unique': 'A user with that username already exists.' }, help_text= 'Required. 254 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=254, unique=True, validators=[ django.core.validators.RegexValidator( b'^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.' ) ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')), ('email', models.EmailField(error_messages={ b'unique': 'A user with that email already exists.' }, max_length=254, unique=True, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('picture', models.ImageField(blank=True, null=True, upload_to=b'uploads', verbose_name=b'profile_picture')), ('type', models.CharField(choices=[(b'HUM', b'Human user'), (b'BOT', b'Bot')], default=b'HUM', max_length=4)), ('last_listening_date', models.DateTimeField(null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'abstract': False, }, managers=[ ('objects', core.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Counter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('name', models.CharField(max_length=100, verbose_name='Name')), ('number', models.IntegerField(verbose_name='Number')), ], options={ 'verbose_name': 'Counter', }, ), migrations.CreateModel( name='FeatureBig', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('feature_title', models.CharField(max_length=60, verbose_name='Name')), ('feature_desc', models.CharField(max_length=300, verbose_name='Description')), ('image', stdimage.models.StdImageField( upload_to=core.models.refactor_name, verbose_name='Image')), ], options={ 'verbose_name': 'Big Feature', 'verbose_name_plural': 'Big Features', }, ), migrations.CreateModel( name='FeatureSmall', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('feature_title', models.CharField(max_length=30, verbose_name='Feature Name')), ('feature_desc', models.CharField(max_length=120, verbose_name='Description')), ('image', stdimage.models.StdImageField( upload_to=core.models.refactor_name, verbose_name='Image')), ], options={ 'verbose_name': 'Small Feature', 'verbose_name_plural': 'Small Features', }, ), migrations.CreateModel( name='Pricing', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='Price')), ('currency', models.CharField(default='$', max_length=4, verbose_name='Currency')), ('service_duration', models.CharField(choices=[('Daily', 'Per day'), ('Weekly', 'Per week'), ('Monthly', 'Per month'), ('Yearly', 'Per year')], max_length=7, verbose_name='Duration')), ('benefits', django.contrib.postgres.fields.ArrayField( base_field=models.CharField(default=list, max_length=40), size=10)), ], options={ 'verbose_name': 'Pricing', }, ), migrations.CreateModel( name='Testimonial', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('author', models.CharField(max_length=50, verbose_name='Author')), ('role', models.CharField(max_length=50, verbose_name='Role')), ('opinion', models.CharField(max_length=300, verbose_name='Opinion')), ('image', stdimage.models.StdImageField( upload_to=core.models.refactor_name, verbose_name='Image')), ], options={ 'verbose_name': 'Testimonial', 'verbose_name_plural': 'Testimonials', }, ), migrations.CreateModel( name='WorkProcess', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_live', models.BooleanField(default=True, verbose_name='Is Live?')), ('created', models.DateField(auto_now_add=True, verbose_name='Created')), ('modified', models.DateField(auto_now=True, verbose_name='Last Time Modified')), ('process_name', models.CharField(max_length=30, verbose_name='Process')), ('process_desc', models.CharField(max_length=50, verbose_name='Description')), ('image', stdimage.models.StdImageField( upload_to=core.models.refactor_name, verbose_name='Image')), ], options={ 'verbose_name': 'Work Process', 'verbose_name_plural': 'Work Processes', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='AnoPublicacao', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('ano', models.CharField(max_length=4, unique=True)), ], ), migrations.CreateModel( name='Autor', fields=[ ('matricula', models.IntegerField(primary_key=True, serialize=False)), ('nome', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Curso', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('nome', models.CharField(max_length=45)), ], ), migrations.CreateModel( name='Orientador', fields=[ ('matricula', models.IntegerField(primary_key=True, serialize=False)), ('nome', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='PalavrasChave', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='Programa', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('nome', models.CharField(max_length=45)), ], ), migrations.CreateModel( name='TipoDocumento', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('nome', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='Documento', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('titulo', models.CharField(max_length=200)), ('file', models.FileField(upload_to=core.models.path_and_rename)), ('ano', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.anopublicacao')), ('autor', models.ManyToManyField(to='core.Autor')), ('keys', models.ManyToManyField(to='core.PalavrasChave')), ('orientador', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.orientador')), ('programa', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.programa')), ('tipo', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.tipodocumento')), ], ), migrations.CreateModel( name='CustomUsuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='E-mail')), ('matricula', models.CharField(max_length=8)), ('is_staff', models.BooleanField(default=False, verbose_name='Membro da equipe')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', core.models.UsuarioManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, help_text='Name', max_length=255)), ('note', models.TextField(blank=True, help_text='Note', null=True)), ('created', models.DateTimeField(auto_now_add=True, help_text='Created')), ('updated', models.DateTimeField(auto_now=True, help_text='Last updated')), ('object_id', models.PositiveIntegerField()), ('img', models.ImageField(upload_to=core.models.user_directory_path)), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ('user', models.ForeignKey(on_delete=models.SET( core.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=(models.Model, core.models.DictDocumentMixin), ), migrations.CreateModel( name='TaggedItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, help_text='Name', max_length=255)), ('note', models.TextField(blank=True, help_text='Note', null=True)), ('created', models.DateTimeField(auto_now_add=True, help_text='Created')), ('updated', models.DateTimeField(auto_now=True, help_text='Last updated')), ('object_id', models.PositiveIntegerField()), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ('user', models.ForeignKey(on_delete=models.SET( core.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=(models.Model, core.models.DictDocumentMixin), ), ]
class Migration(migrations.Migration): dependencies = [ ('sponsors', '0018_openrole'), ('events', '0024_auto_20200319_1924'), ] operations = [ migrations.CreateModel( name='JobListingsEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('conference', models.SlugField(choices=[ ('pycontw-2016', 'PyCon Taiwan 2016'), ('pycontw-2017', 'PyCon Taiwan 2017'), ('pycontw-2018', 'PyCon Taiwan 2018'), ('pycontw-2019', 'PyCon Taiwan 2019'), ('pycontw-2020', 'PyCon Taiwan 2020') ], default='pycontw-2020', verbose_name='conference')), ('location', models.CharField(blank=True, choices=[('2-all', 'All rooms'), ('3-r012', 'R0, R1, R2'), ('4-r0', 'R0'), ('5-r1', 'R1'), ('6-r2', 'R2'), ('1-r3', 'R3'), ('7-r4', 'R4')], db_index=True, max_length=6, null=True, verbose_name='location')), ('begin_time', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='begined_joblistingsevent_set', to='events.Time', verbose_name='begin time')), ('end_time', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ended_joblistingsevent_set', to='events.Time', verbose_name='end time')), ('sponsor', core.models.BigForeignKey( on_delete=django.db.models.deletion.CASCADE, to='sponsors.Sponsor', verbose_name='sponsor')), ], options={ 'verbose_name': 'Job Listings', 'verbose_name_plural': 'Job Listings', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('email', models.EmailField(max_length=255, unique=True)), ('name', models.CharField(max_length=255)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Categories', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='Pin', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('business', models.CharField(max_length=255)), ('details', models.CharField(max_length=500)), ('city', models.CharField(max_length=100, null=True)), ('state', models.CharField(max_length=20, null=True)), ('image', models.ImageField(null=True, upload_to=core.models.pin_image_file_path)), ('categories', models.ManyToManyField(to='core.Categories')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='Board', fields=[ ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='tag', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='pin', name='tags', field=models.ManyToManyField(to='core.Tag'), ), migrations.AddField( model_name='pin', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='categories', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), migrations.AddField( model_name='board', name='pin', field=models.ManyToManyField(to='core.Pin'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='FileFormat', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('io', models.CharField(choices=[('I', 'Input Only'), ('O', 'Output Only'), ('D', 'Input / Output')], default='D', max_length=1)), ('extension', models.CharField(max_length=100)), ('mime_type', models.CharField(max_length=100)), ('description', models.TextField()), ], ), migrations.CreateModel( name='Script', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('identifier', models.CharField(max_length=250)), ('description', models.TextField()), ('language', models.CharField(choices=[('M', 'MATLAB Function'), ('P', 'Python Function')], default='M', max_length=1)), ('uploaded_script', models.FileField(max_length=200, null=True, upload_to=core.models.Script.script_path)), ('data_input', models.ForeignKey(default={'name': 'CSV File - Single Row'}, on_delete=django.db.models.deletion.CASCADE, related_name='script_inputs', to='core.fileformat')), ('data_output', models.ForeignKey(default={'name': 'CSV File - Single Row'}, on_delete=django.db.models.deletion.CASCADE, related_name='script_outputs', to='core.fileformat')), ], ), migrations.CreateModel( name='File', fields=[ ('identifier', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(default=' ', max_length=100)), ('uploaded_file', models.FileField( max_length=200, null=True, upload_to=core.models.File.content_filename)), ('format', models.ForeignKey(default={'name': 'CSV File - Single Row'}, on_delete=django.db.models.deletion.CASCADE, related_name='formats', to='core.fileformat')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Execution', fields=[ ('identifier', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('data_input', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='execution_inputs', to='core.file')), ('data_output', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='execution_outputs', to='core.file')), ('script', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='execution_scripts', to='core.script')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('street_address', models.CharField(max_length=100)), ('apartment_address', models.CharField(max_length=100)), ('country', django_countries.fields.CountryField(max_length=2)), ('zip', models.CharField(max_length=100)), ('address_type', models.CharField(choices=[('B', 'Billing'), ('S', 'Shipping')], max_length=1)), ('default', models.BooleanField(default=False)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Addresses', }, ), migrations.CreateModel( name='Coupon', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=15, unique=True)), ('amount', models.FloatField()), ], ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('price', models.FloatField()), ('discount_price', models.FloatField(blank=True, null=True)), ('category', models.CharField(choices=[('Bk', 'Books'), ('Mi', 'Musical Instruments'), ('St', 'Statues')], max_length=2)), ('label', models.CharField(choices=[('P', 'primary'), ('S', 'secondary'), ('D', 'danger')], max_length=1)), ('slug', models.SlugField(blank=True)), ('description', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=core.models.upload_image_path)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ref_code', models.CharField(blank=True, max_length=20, null=True)), ('start_date', models.DateTimeField(auto_now_add=True)), ('ordered_date', models.DateTimeField()), ('ordered', models.BooleanField(default=False)), ('being_delivered', models.BooleanField(default=False)), ('received', models.BooleanField(default=False)), ('refund_requested', models.BooleanField(default=False)), ('refund_granted', models.BooleanField(default=False)), ('billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='billing_address', to='core.Address')), ('coupon', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Coupon')), ], ), migrations.CreateModel( name='Refund', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('reason', models.TextField()), ('accepted', models.BooleanField(default=False)), ('email', models.EmailField(max_length=254)), ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Order')), ], ), migrations.CreateModel( name='Payment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('stripe_charge_id', models.CharField(max_length=50)), ('amount', models.FloatField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='OrderItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ordered', models.BooleanField(default=False)), ('quantity', models.IntegerField(default=1)), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Item')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='order', name='items', field=models.ManyToManyField(to='core.OrderItem'), ), migrations.AddField( model_name='order', name='payment', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Payment'), ), migrations.AddField( model_name='order', name='shipping_address', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='shipping_address', to='core.Address'), ), migrations.AddField( model_name='order', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('group', models.CharField(max_length=40)), ('department', models.CharField(max_length=40)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='applygrained', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(db_index=True, max_length=50)), ('work_id', models.CharField(max_length=50, null=True)), ('status', models.IntegerField(blank=True, null=True)), ('permissions', core.models.JSONField()), ], ), migrations.CreateModel( name='DatabaseList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('connection_name', models.CharField(max_length=50)), ('computer_room', models.CharField(max_length=50)), ('ip', models.CharField(max_length=100)), ('username', models.CharField(max_length=150)), ('port', models.IntegerField()), ('password', models.CharField(max_length=50)), ('before', models.TextField(null=True)), ('after', models.TextField(null=True)), ('url', models.TextField(blank=True)), ], ), migrations.CreateModel( name='globalpermissions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('authorization', models.CharField(db_index=True, max_length=50, null=True)), ('inception', core.models.JSONField(null=True)), ('ldap', core.models.JSONField(null=True)), ('message', core.models.JSONField(null=True)), ('other', core.models.JSONField(null=True)), ], ), migrations.CreateModel( name='grained', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(db_index=True, max_length=50)), ('permissions', core.models.JSONField()), ], ), migrations.CreateModel( name='query_order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(db_index=True, max_length=50, null=True)), ('username', models.CharField(max_length=100, null=True)), ('date', models.CharField(max_length=50)), ('timer', models.CharField(max_length=50)), ('instructions', models.TextField(null=True)), ('query_per', models.SmallIntegerField(default=0, null=True)), ('connection_name', models.CharField(max_length=50, null=True)), ('computer_room', models.CharField(max_length=50, null=True)), ('export', models.SmallIntegerField(default=0, null=True)), ('audit', models.CharField(max_length=100, null=True)), ('time', models.CharField(max_length=100, null=True)), ], ), migrations.CreateModel( name='querypermissions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(db_index=True, max_length=50, null=True)), ('username', models.CharField(max_length=100, null=True)), ('statements', models.TextField()), ], ), migrations.CreateModel( name='SqlDictionary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('BaseName', models.CharField(max_length=100)), ('TableName', models.CharField(max_length=100)), ('Field', models.CharField(max_length=100)), ('Type', models.CharField(max_length=100)), ('Extra', models.TextField()), ('TableComment', models.CharField(max_length=100)), ('Name', models.CharField(max_length=100, null=True)), ], ), migrations.CreateModel( name='SqlOrder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(blank=True, max_length=50)), ('username', models.CharField(blank=True, max_length=50)), ('status', models.IntegerField(blank=True)), ('type', models.SmallIntegerField(blank=True)), ('backup', models.SmallIntegerField(blank=True)), ('bundle_id', models.IntegerField(db_index=True, null=True)), ('date', models.CharField(blank=True, max_length=100)), ('basename', models.CharField(blank=True, max_length=50)), ('sql', models.TextField(blank=True)), ('text', models.CharField(max_length=100)), ('assigned', models.CharField(blank=True, max_length=50)), ('delay', models.IntegerField(default=0, null=True)), ], ), migrations.CreateModel( name='SqlRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state', models.CharField(max_length=100)), ('sql', models.TextField(blank=True)), ('error', models.TextField(null=True)), ('workid', models.CharField(max_length=50, null=True)), ('affectrow', models.CharField(max_length=100, null=True)), ('sequence', models.CharField(max_length=50, null=True)), ('execute_time', models.CharField(max_length=150, null=True)), ('backup_dbname', models.CharField(max_length=100, null=True)), ('SQLSHA1', models.TextField(null=True)), ], ), migrations.CreateModel( name='Todolist', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=50)), ('content', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Usermessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('to_user', models.CharField(max_length=50)), ('from_user', models.CharField(max_length=50)), ('content', models.TextField(max_length=500)), ('time', models.CharField(max_length=50)), ('state', models.CharField(max_length=10)), ('title', models.CharField(max_length=100)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=core.models.my_upload_to, verbose_name='Файл')), ('name', models.CharField(db_index=True, max_length=255, verbose_name='Имя файла')), ('mime', models.CharField(db_index=True, max_length=16, verbose_name='Тип Mime')), ('ctime', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Записано')), ('size', models.PositiveIntegerField(db_index=True, verbose_name='Размер')), ('md5', models.CharField(db_index=True, max_length=32, verbose_name='MD5')), ], options={ 'verbose_name': 'Файл', 'verbose_name_plural': 'Файлы', }, ), migrations.CreateModel( name='FileSeq', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ 'verbose_name': 'Последовательность файлов', 'verbose_name_plural': 'Последовательности файлов', 'ordering': ('id', ), }, ), migrations.CreateModel( name='Org', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('inn', models.CharField(max_length=12, unique=True, verbose_name='VAP')), ('name', models.CharField(max_length=40, unique=True, verbose_name='Short name')), ('fullname', models.CharField(db_index=True, max_length=64, verbose_name='Full name')), ], options={ 'verbose_name': 'Организация', 'verbose_name_plural': 'Организации', 'ordering': ('name', ), }, ), migrations.CreateModel( name='FileSeqItem', fields=[ ('file', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='core.file', verbose_name='File')), ('order', models.PositiveSmallIntegerField(db_index=True, verbose_name='#')), ('fileseq', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.fileseq', verbose_name='File sequence')), ], options={ 'verbose_name': 'Файл последовательности', 'verbose_name_plural': 'Файлы последовательности', 'ordering': ('file', 'order'), }, ), migrations.AddField( model_name='fileseq', name='files', field=models.ManyToManyField(through='core.FileSeqItem', to='core.File', verbose_name='Файлы'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('address', models.CharField(blank=True, max_length=200, null=True)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', core.models.CustomUserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('problemset', '0015_auto_20170602_2036'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Submission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('source_file', models.FileField( upload_to=core.models.source_directory_path)), ('status', models.IntegerField(choices=[(0, 'Error'), (1, 'Pending'), (2, 'Tests passed'), (3, 'Wrong answer')], default=1)), ('language', models.IntegerField(choices=[(0, 'C++'), (1, 'Python')])), ('datetime', models.DateTimeField(default=django.utils.timezone.now)), ], ), migrations.CreateModel( name='SubmissionError', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.IntegerField()), ], ), migrations.AddField( model_name='submission', name='error', field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to='core.SubmissionError'), ), migrations.AddField( model_name='submission', name='problem', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='problemset.Problem'), ), migrations.AddField( model_name='submission', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Movie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=140)), ('plot', models.TextField()), ('year', models.PositiveIntegerField()), ('rating', models.IntegerField(choices=[ (0, 'NR - Not Rated'), (1, 'G - General Audiences'), (2, 'PG - Parental Guidance Suggested'), (3, 'R - Restricted') ], default=0)), ('runtime', models.PositiveIntegerField()), ('website', models.URLField(blank=True)), ], options={ 'ordering': ('-year', 'title'), }, ), migrations.CreateModel( name='MovieImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=core.models.movie_directory_path_with_uuid)), ('uploaded', models.DateTimeField(auto_now_add=True)), ('movie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Movie')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Person', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=140)), ('last_name', models.CharField(max_length=140)), ('born', models.DateField()), ('died', models.DateField(blank=True, null=True)), ], options={ 'ordering': ('last_name', 'first_name'), }, ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=140)), ('movie', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='core.Movie')), ('person', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='core.Person')), ], ), migrations.CreateModel( name='Vote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('value', models.SmallIntegerField(choices=[(1, '👍'), (-1, '👎')])), ('voted_on', models.DateTimeField(auto_now=True)), ('movie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Movie')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='movie', name='actors', field=models.ManyToManyField(blank=True, related_name='acting_credits', through='core.Role', to='core.Person'), ), migrations.AddField( model_name='movie', name='director', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='directed', to='core.Person'), ), migrations.AddField( model_name='movie', name='writers', field=models.ManyToManyField(blank=True, related_name='writing_credits', to='core.Person'), ), migrations.AlterUniqueTogether( name='vote', unique_together={('user', 'movie')}, ), migrations.AlterUniqueTogether( name='role', unique_together={('movie', 'person', 'name')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=core.models.File._upload_to)), ('name', models.CharField(blank=True, default='', max_length=255, verbose_name='name')), ('original_filename', models.CharField(blank=True, default='', max_length=255, verbose_name='original filename')), ('size', models.PositiveIntegerField(blank=True, default=0, verbose_name='size')), ('description', models.TextField(blank=True, null=True, verbose_name='description')), ('slug', models.SlugField(unique=True, verbose_name='slug')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='modified')), ], options={ 'verbose_name': 'file', 'verbose_name_plural': 'files', 'ordering': ('name', 'original_filename'), }, ), migrations.CreateModel( name='Folder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='name')), ('description', models.TextField(blank=True, null=True, verbose_name='description')), ('slug', models.SlugField(unique=True, verbose_name='slug')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='modified')), ('lft', models.PositiveIntegerField(db_index=True, editable=False)), ('rght', models.PositiveIntegerField(db_index=True, editable=False)), ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), ('level', models.PositiveIntegerField(db_index=True, editable=False)), ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='owned_folders', to=settings.AUTH_USER_MODEL, verbose_name='owner')), ('parent', mptt.fields.TreeForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='core.Folder', verbose_name='parent')), ], options={ 'verbose_name': 'folder', 'verbose_name_plural': 'folders', 'ordering': ('name', ), }, ), migrations.CreateModel( name='Permission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.PositiveIntegerField(verbose_name='object id')), ('category', models.CharField(choices=[('r', 'View'), ('w', 'Edit')], default='r', max_length=10, verbose_name='category')), ('everybody', models.BooleanField(default=False, verbose_name='everybody')), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.ContentType', verbose_name='content type')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='permissions', to=settings.AUTH_USER_MODEL, verbose_name='user')), ], options={ 'verbose_name': 'permission', 'verbose_name_plural': 'permissions', 'ordering': ('user', 'content_type'), }, ), migrations.AddField( model_name='file', name='folder', field=mptt.fields.TreeForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='files', to='core.Folder', verbose_name='folder'), ), migrations.AddField( model_name='file', name='owner', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='owned_files', to=settings.AUTH_USER_MODEL, verbose_name='owner'), ), migrations.AlterUniqueTogether( name='folder', unique_together=set([('parent', 'name')]), ), ]
class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('core', '0019_auto_20180925_1653'), ] operations = [ migrations.CreateModel( name='FilePdf', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.DateTimeField(auto_now_add=True, null=True)), ('nome_contenuto', models.CharField(blank=True, max_length=100, null=True)), ('file', models.FileField( blank=True, null=True, upload_to=core.models.percorso_cartella_lezioni)), ], options={ 'verbose_name': 'Contenuto', 'verbose_name_plural': 'Contenuti', 'abstract': False, }, ), migrations.CreateModel( name='LinkVideo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.DateTimeField(auto_now_add=True, null=True)), ('nome_contenuto', models.CharField(blank=True, max_length=100, null=True)), ('link', models.URLField( blank=True, null=True, validators=[ django.core.validators.RegexValidator( message='Inserire soltanto Embed Code Vimeo', regex= '^<iframe src="https://player.vimeo.com.[a-zA-Z"./:+=0-9>< -?!\\n]+$' ) ])), ], options={ 'verbose_name': 'Contenuto', 'verbose_name_plural': 'Contenuti', 'abstract': False, }, ), migrations.AddField( model_name='lezione', name='contenuto', field=models.ForeignKey( default=1, limit_choices_to={'model__in': ('filepdf', 'linkvideo')}, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), preserve_default=False, ), ]
class Migration(migrations.Migration): replaces = [('core', '0001_initial'), ('core', '0002_transaction_settlement_date'), ('core', '0003_party_projects'), ('core', '0004_auto_20161205_1506'), ('core', '0005_auto_20161206_1856'), ('core', '0006_auto_20161206_1918'), ('core', '0007_auto_20161207_0940'), ('core', '0008_auto_20161207_0942'), ('core', '0009_auto_20161207_0943'), ('core', '0010_auto_20161207_1021'), ('core', '0011_auto_20161207_1034'), ('core', '0012_auto_20161207_1043'), ('core', '0013_auto_20161207_1043'), ('core', '0014_auto_20161207_1053'), ('core', '0015_auto_20161207_1220'), ('core', '0016_auto_20161207_1221'), ('core', '0017_auto_20161207_1226'), ('core', '0018_auto_20161207_1253'), ('core', '0019_auto_20161207_1356'), ('core', '0020_auto_20161212_1516'), ('core', '0021_auto_20161214_0939'), ('core', '0022_auto_20161214_1349'), ('core', '0023_auto_20161221_1523'), ('core', '0024_auto_20161222_0927')] dependencies = [ ] operations = [ migrations.CreateModel( name='Party', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1024)), ('is_domestic', models.BooleanField(default=True)), ('vat_ptc', models.IntegerField(default=25, validators=[django.core.validators.MaxValueValidator(50), django.core.validators.MinValueValidator(0)])), ('is_active', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1024)), ('is_internal', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('direction', models.CharField(choices=[('1', 'incoming'), ('2', 'outgoing')], default=1, max_length=1)), ('transaction_type', models.CharField(choices=[('1', 'invoice'), ('2', 'tax'), ('3', 'payroll'), ('4', 'profit'), ('5', 'adjustment')], default=1, max_length=1)), ('invoice_amount', models.DecimalField(decimal_places=2, default=0.0, max_digits=8, null=True)), ('settlement_ammount', models.DecimalField(decimal_places=2, default=0.0, max_digits=8, null=True)), ('adjustment', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)), ('description', models.CharField(default='', max_length=1024)), ('comments', models.TextField(default='')), ('party', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Party')), ('settlement_date', models.DateField(blank=True, default=None, null=True)), ('invoice_date', models.DateField(default=datetime.datetime.today, verbose_name='Invoice date')), ('projects', models.ManyToManyField(blank=True, to='core.Project')), ('end_date', models.DateField(default=core.models.Transaction.calculate_last_day_of_month, verbose_name='End date')), ('start_date', models.DateField(default=core.models.Transaction.calculate_first_day_of_month, verbose_name='Start date')), ('vat_ammount', models.DecimalField(decimal_places=2, default=0.0, max_digits=8, null=True)), ], ), migrations.AddField( model_name='party', name='projects', field=models.ManyToManyField(to='core.Project'), ), migrations.AlterModelOptions( name='party', options={'verbose_name_plural': 'parties'}, ), migrations.AlterField( model_name='party', name='projects', field=models.ManyToManyField(blank=True, to='core.Project'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0007_auto_20190723_1121'), ] operations = [ migrations.RenameField( model_name='order', old_name='being_delivered', new_name='recieved', ), migrations.RemoveField( model_name='item', name='description', ), migrations.RemoveField( model_name='item', name='size', ), migrations.RemoveField( model_name='order', name='recived', ), migrations.RemoveField( model_name='order', name='refun_request', ), migrations.RemoveField( model_name='order', name='refund_granted', ), migrations.AddField( model_name='item', name='category', field=models.CharField(choices=[('S', 'Shirt'), ('SW', 'Sport Wear'), ('OW', 'OutWear')], default='dummy', max_length=2), preserve_default=False, ), migrations.AddField( model_name='item', name='desc', field=models.TextField(default='dummy'), preserve_default=False, ), migrations.AddField( model_name='item', name='discount_price', field=models.IntegerField(blank=True, null=True), ), migrations.AddField( model_name='item', name='label', field=models.CharField(choices=[('P', 'primary'), ('s', 'secondary'), ('d', 'danger')], default='s', max_length=1), preserve_default=False, ), migrations.AddField( model_name='order', name='name', field=models.CharField(default='sohan', max_length=20), preserve_default=False, ), migrations.AlterField( model_name='item', name='image', field=models.ImageField(blank=True, null=True, upload_to=core.models.upload_image_path), ), migrations.AlterField( model_name='item', name='price', field=models.IntegerField(), ), migrations.AlterField( model_name='item', name='slug', field=models.SlugField(blank=True, unique=True), ), migrations.AlterField( model_name='item', name='title', field=models.CharField(max_length=20), ), migrations.RemoveField( model_name='order', name='items', ), migrations.AddField( model_name='order', name='items', field=models.ManyToManyField(to='core.OrderItem'), ), migrations.AlterField( model_name='orderitem', name='ordered', field=models.BooleanField(), ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('street_address', models.CharField(max_length=50)), ('apartment_address', models.CharField(max_length=50)), ('country', models.CharField(max_length=50)), ('zip_code', models.CharField(max_length=20)), ('address_type', models.CharField(choices=[('s', 'shipping'), ('b', 'billing')], max_length=1)), ('default', models.BooleanField(default=False)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Addesses', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0028_itemprice_price'), ] operations = [ migrations.CreateModel( name='ItemOrdered', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('sku', models.CharField( max_length=8, unique=True, validators=[django.core.validators.MinLengthValidator(8) ])), ('upc', models.CharField( blank=True, max_length=12, null=True, unique=True, validators=[ django.core.validators.MinLengthValidator(12) ])), ('price', models.FloatField()), ('discount_price', models.FloatField(blank=True, null=True)), ('category', models.CharField(choices=[('DR', 'Drink'), ('DO', 'Deals & Offers'), ('DI', 'Dairy Items'), ('FV', 'Fruits & Vegetables'), ('GR', 'Groceries'), ('HS', 'Household Supplies'), ('BP', 'Beauty & Personal Care'), ('OT', 'Others')], max_length=2)), ('label', models.CharField(choices=[('P', 'primary'), ('S', 'secondary'), ('D', 'danger')], max_length=1)), ('slug', models.SlugField()), ('description', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=core.models.upload_location)), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.OrderItem')), ], ), migrations.DeleteModel(name='ItemPrice', ), migrations.AddField( model_name='orderitem', name='ordered_item', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.ItemOrdered'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('email', models.EmailField(max_length=100)), ('username', models.CharField(max_length=100, unique=True)), ('password', models.CharField(max_length=100)), ('image', models.ImageField(null=True, upload_to=core.models.upload_path_user)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('bio', models.CharField(blank=True, max_length=255, null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('likes', models.IntegerField(default=0)), ('title', models.CharField(max_length=100)), ('content', models.CharField(max_length=10000)), ('uploaded', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='ImageClassifier', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=core.models.upload_path_classifier)), ('classification', models.CharField(blank=True, max_length=100)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.CharField(max_length=100)), ('uploaded', models.DateTimeField(auto_now_add=True)), ('likes', models.IntegerField(default=0)), ('blog', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Blog')), ('replied', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Comment')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='blog', name='tags', field=models.ManyToManyField(blank=True, to='core.Tag'), ), migrations.AddField( model_name='blog', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Categories', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateField(auto_now_add=True, verbose_name='Criado em: ')), ('modified', models.DateField(auto_now=True, verbose_name='Modificado em:')), ('category', models.CharField(max_length=100, verbose_name='Categoria')), ('description', models.TextField(max_length=200, verbose_name='Descrição')), ('color', models.CharField(max_length=7, verbose_name='Cor')), ], options={ 'verbose_name': 'Categoria', 'verbose_name_plural': 'Categorias', }, ), migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateField(auto_now_add=True, verbose_name='Criado em: ')), ('modified', models.DateField(auto_now=True, verbose_name='Modificado em:')), ('title', models.CharField(max_length=100, verbose_name='Título')), ('img', stdimage.models.StdImageField( upload_to=core.models.get_file_path, verbose_name='Imagem')), ('author', models.CharField(max_length=100, verbose_name='Autor')), ('text', models.TextField(verbose_name='Texto')), ('slug', models.SlugField(blank=True, editable=False, max_length=100, verbose_name='Slug')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.categories', verbose_name='Categoria')), ], options={ 'verbose_name': 'Notícia', 'verbose_name_plural': 'Notícias', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='AddOn', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('short_description', models.CharField(max_length=255)), ('logo', models.ImageField(upload_to='')), ], options={ 'verbose_name': 'Add-on', }, ), migrations.CreateModel( name='AddOnVersion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('version', models.CharField(max_length=255)), ('supports', models.CharField(choices=[('7.2.5', '7.2.5'), ('7.2.0', '7.2.0'), ('7.1.5', '7.1.5'), ('7.1.0', '7.1.0')], max_length=8)), ('file', models.FileField(upload_to=core.models.upload_to)), ('added', models.DateTimeField(auto_now_add=True)), ], options={ 'ordering': ('-added', ), 'verbose_name': 'Add-on version', }, ), migrations.CreateModel( name='Screenshot', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='')), ], ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='AddOnPage', fields=[ ('add_on', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='page', serialize=False, to='core.AddOn')), ('long_description', models.TextField()), ], options={ 'verbose_name': 'Add-on page', }, ), migrations.AddField( model_name='user', name='favourites', field=models.ManyToManyField(related_name='favourited_by', to='core.AddOn'), ), migrations.AddField( model_name='user', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='screenshot', name='add_on', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='screenshots', to='core.AddOn'), ), migrations.AddField( model_name='addonversion', name='add_on', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='versions', to='core.AddOn'), ), migrations.AddField( model_name='addon', name='contributors', field=models.ManyToManyField(blank=True, related_name='contributes_to', to='core.User'), ), migrations.AddField( model_name='addon', name='creator', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='addons_created', to='core.User'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Achievment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('upload', models.FileField(upload_to=core.models.user_directory_path)), ('description', models.TextField(blank=True)), ], options={ 'verbose_name_plural': 'achievments', 'verbose_name': 'achievment', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, verbose_name='category name')), ('aim', models.TextField(blank=True, verbose_name='what person want to get')), ('completed_tasks', models.IntegerField(blank=True, null=True)), ('spent_time', models.IntegerField(blank=True, null=True)), ('lazy_days', models.IntegerField(blank=True, null=True)), ('created_at', models.DateField(auto_now_add=True)), ('parent', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='core.Category')), ], options={ 'verbose_name_plural': 'categories', 'ordering': ['lazy_days'], 'verbose_name': 'category', }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=200, verbose_name='username')), ('completed_tasks', models.IntegerField(blank=True, null=True)), ('spent_time', models.IntegerField(blank=True, null=True)), ('lazy_days', models.IntegerField(blank=True, null=True)), ('created_at', models.DateField(auto_now_add=True)), ('categories', models.ManyToManyField(blank=True, to='core.Category', verbose_name='category')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'profiles', 'ordering': ['-created_at'], 'verbose_name': 'profile', }, ), migrations.CreateModel( name='Programm', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, verbose_name='programm name')), ('is_active', models.BinaryField(default=False)), ('description', models.TextField(blank=True, verbose_name='what is this programm for')), ('completed_tasks', models.IntegerField(blank=True, null=True)), ('spent_time', models.IntegerField(blank=True, null=True)), ('lazy_days', models.IntegerField(blank=True, null=True)), ('created_at', models.DateField(auto_now_add=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Category')), ], options={ 'verbose_name_plural': 'programms', 'ordering': ['lazy_days'], 'verbose_name': 'programm', }, ), migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, verbose_name='task')), ('is_finished', models.BinaryField(default=False)), ('created_at', models.DateField(auto_now_add=True)), ('plan_date', models.DateField(blank=True, null=True)), ('finish_date', models.DateField(blank=True, null=True)), ('spent_time', models.IntegerField(blank=True, null=True)), ('description', models.TextField(blank=True, verbose_name='what is this task about')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Profile')), ('programm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Programm')), ], options={ 'verbose_name_plural': 'tasks', 'ordering': ['-finish_date'], 'verbose_name': 'task', }, ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('spent_time', models.IntegerField()), ('created_at', models.DateField(auto_now_add=True)), ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Task')), ], options={ 'verbose_name_plural': 'transactions', 'ordering': ['-created_at'], 'verbose_name': 'transaction', }, ), migrations.AddField( model_name='achievment', name='profile', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Profile'), ), migrations.AddField( model_name='achievment', name='task', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Task'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('is_professor', models.BooleanField(default=False, verbose_name='professor status')), ('is_candidate', models.BooleanField(default=False, verbose_name='candidate status')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='UserProfessor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', models.ImageField(blank=True, upload_to='professor_images')), ('collaborated_professors', models.ManyToManyField( related_name='_userprofessor_collaborated_professors_+', to='core.UserProfessor')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='professor', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserCandidate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', models.ImageField(blank=True, upload_to='candidate_images')), ('professor', models.ManyToManyField(related_name='students', to='core.UserProfessor')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='candidate', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unread', models.BooleanField(default=True)), ('actor_object_id', models.CharField(max_length=255)), ('verb', models.CharField(max_length=255)), ('description', models.TextField(blank=True, null=True)), ('target_object_id', models.CharField(blank=True, max_length=255, null=True)), ('action_object_object_id', models.CharField(blank=True, max_length=255, null=True)), ('timestamp', models.DateTimeField(default=django.utils.timezone.now)), ('action_object_content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notify_action_object', to='contenttypes.ContentType')), ('actor_content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notify_actor', to='contenttypes.ContentType')), ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to=settings.AUTH_USER_MODEL)), ('target_content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notify_target', to='contenttypes.ContentType')), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject', models.CharField(max_length=70, verbose_name='Subject')), ('body', models.CharField(blank=True, max_length=250)), ('sent_at', models.DateTimeField(blank=True, editable=False, null=True)), ('file', models.FileField(blank=True, null=True, upload_to='temp_files')), ('is_read', models.BooleanField(default=False)), ('is_sender_delete', models.BooleanField(default=False)), ('is_receiver_delete', models.BooleanField(default=False)), ('parent_msg', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='next_messages', to='core.Message', verbose_name='parent message')), ('receiver', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='received_messages', to=settings.AUTH_USER_MODEL)), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='sent_messages', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['sent_at'], }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=70)), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='created_groups', to='core.UserProfessor')), ('members', models.ManyToManyField(related_name='participants', to='core.UserCandidate')), ], ), migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(blank=True, max_length=70)), ('file', models.FileField(upload_to=core.models.file_location_path)), ('name', models.CharField(max_length=70)), ('created', models.DateTimeField(editable=False, null=True)), ('modified', models.DateTimeField(null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userfiles', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Files', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Categoria', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nombre', models.CharField(max_length=60, unique=True)), ('ver_en_web', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Cliente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('identificacion', models.CharField(max_length=30)), ('primer_nombre', models.CharField(max_length=30)), ('segundo_nombre', models.CharField(max_length=30)), ('primer_apellido', models.CharField(max_length=30)), ('segundo_apellido', models.CharField(max_length=30)), ('fecha_nacimiento', models.DateField(null=True)), ('correo', models.EmailField(max_length=254, null=True)), ('telefono', models.CharField(max_length=30)), ('direccion', models.TextField(null=True)), ], ), migrations.CreateModel( name='Servicio', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(max_length=120)), ('descripcion', models.TextField(null=True)), ('precio', models.DecimalField(decimal_places=2, max_digits=7)), ('descuento', models.PositiveSmallIntegerField(null=True)), ('ver_descuento', models.BooleanField(default=True)), ('ver_en_web', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='ServiciosCliente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('porcentaje_total', models.PositiveSmallIntegerField(default=0)), ('observaciones', models.TextField(null=True)), ('estado', models.CharField(max_length=30)), ('cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Cliente')), ('servicio', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Servicio')), ], ), migrations.CreateModel( name='Seguimiento', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(max_length=120)), ('descripcion', models.TextField(null=True)), ('porcentaje', models.PositiveSmallIntegerField(default=0)), ('servicio_cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ServiciosCliente')), ], ), migrations.CreateModel( name='Producto', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nombre', models.CharField(max_length=60, unique=True)), ('descripcion', models.TextField(null=True)), ('precio', models.DecimalField(decimal_places=2, max_digits=7)), ('descuento', models.PositiveSmallIntegerField(null=True)), ('ver_descuento', models.BooleanField(default=True)), ('ver_en_web', models.BooleanField(default=True)), ('categoria', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Categoria')), ], ), migrations.CreateModel( name='FotoServicio', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(blank=True, max_length=120, null=True)), ('descripcion', models.TextField(blank=True, null=True)), ('fecha_registro', models.DateTimeField(auto_now_add=True)), ('ver_en_web', models.BooleanField(default=True)), ('foto', models.ImageField(blank=True, null=True, upload_to=core.models.path_and_rename)), ('servicio', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Servicio')), ], ), migrations.CreateModel( name='FotoSeguimiento', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(blank=True, max_length=120, null=True)), ('descripcion', models.TextField(blank=True, null=True)), ('fecha_registro', models.DateTimeField(auto_now_add=True)), ('ver_en_web', models.BooleanField(default=True)), ('foto', models.ImageField(blank=True, null=True, upload_to=core.models.path_and_rename)), ('seguimiento', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Seguimiento')), ], ), migrations.CreateModel( name='FotoProducto', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(blank=True, max_length=120, null=True)), ('descripcion', models.TextField(blank=True, null=True)), ('fecha_registro', models.DateTimeField(auto_now_add=True)), ('ver_en_web', models.BooleanField(default=True)), ('foto', models.ImageField(blank=True, null=True, upload_to=core.models.path_and_rename)), ('producto', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Producto')), ], ), migrations.AddField( model_name='cliente', name='servicios', field=models.ManyToManyField(through='core.ServiciosCliente', to='core.Servicio'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('gender', models.BooleanField(default=True)), ('phone_number', models.IntegerField(null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Attribute', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('attribute', models.CharField(max_length=50)), ('value', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=50)), ('category', models.CharField(choices=[('Men', 'Men'), ('Women', 'Women'), ('Electronics', 'Electronics')], max_length=20)), ('sub_category', models.CharField( blank=True, choices=[('Mobiles', 'Mobiles'), ('Mobile_Accessories', 'Mobile Accessories'), ('Laptops', 'Laptops'), ('Desktop_PC', 'Desktop PC'), ('Tablets', 'Tablets'), ('Television', 'Television'), ('Air_Conditioner', 'Air Conditioner'), ('Refrigerator', 'Refrigerator'), ('Washing_Machine', 'Washing Machine'), ('Kitchen_Appliances', 'Kitchen Appliances'), ('T_Shirt', 'T-Shirt'), ('Jeans', 'Jeans'), ('Inner_Wear', 'Inner Wear'), ('Western_Wear', 'Western Wear'), ('Ethnic_Wear', 'Ethnic Wear'), ('Kurti', 'Kurti'), ('Footwear', 'Footwear'), ('Sunglasses', 'Sunglasses'), ('Backpack', 'Backpack'), ('Handbag', 'Handbag'), ('Belt', 'Belt')], max_length=20)), ('is_active', models.BooleanField(default=False)), ('image', models.FileField(upload_to='banner_images/')), ], ), migrations.CreateModel( name='Cart', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip_address', models.GenericIPAddressField(blank=True, null=True)), ('is_ordered', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='CartItems', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveSmallIntegerField( choices=[(1, '1'), (2, '2'), (3, '3')], validators=[core.models.validate_quantity])), ('unit_price', models.DecimalField(decimal_places=2, max_digits=18, verbose_name='unit price')), ('cart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Cart')), ], ), migrations.CreateModel( name='DeliveryAddresses', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('receiver_name', models.CharField(max_length=50)), ('street_address', models.CharField(max_length=50)), ('city', models.CharField(max_length=50)), ('pincode', models.IntegerField()), ('state', models.CharField(max_length=50)), ('phone_number', models.IntegerField()), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FeaturedProducts', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_featured', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Newsletter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=100)), ('is_active', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='OrderedItems', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('order_date', models.DateTimeField(auto_now_add=True)), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('slug', models.SlugField(blank=True, max_length=250, null=True)), ('description', models.CharField(max_length=255)), ('price', models.PositiveIntegerField()), ('quantity', models.PositiveIntegerField(default=1)), ('replacement', models.IntegerField()), ], ), migrations.CreateModel( name='ProductCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category', models.CharField(choices=[('Men', 'Men'), ('Women', 'Women'), ('Electronics', 'Electronics')], max_length=20)), ('sub_category', models.CharField(choices=[ ('Mobiles', 'Mobiles'), ('Mobile_Accessories', 'Mobile Accessories'), ('Laptops', 'Laptops'), ('Desktop_PC', 'Desktop PC'), ('Tablets', 'Tablets'), ('Television', 'Television'), ('Air_Conditioner', 'Air Conditioner'), ('Refrigerator', 'Refrigerator'), ('Washing_Machine', 'Washing Machine'), ('Kitchen_Appliances', 'Kitchen Appliances'), ('T_Shirt', 'T-Shirt'), ('Jeans', 'Jeans'), ('Inner_Wear', 'Inner Wear'), ('Western_Wear', 'Western Wear'), ('Ethnic_Wear', 'Ethnic Wear'), ('Kurti', 'Kurti'), ('Footwear', 'Footwear'), ('Sunglasses', 'Sunglasses'), ('Backpack', 'Backpack'), ('Handbag', 'Handbag'), ('Belt', 'Belt') ], max_length=20)), ], ), migrations.CreateModel( name='ProductImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, parent_link=True, to='core.Product')), ('image', models.FileField(default='product_images/default.jpg', upload_to='product_images/')), ], ), migrations.CreateModel( name='TopBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=50)), ('description', models.CharField(max_length=255)), ('category', models.CharField(choices=[('Men', 'Men'), ('Women', 'Women'), ('Electronics', 'Electronics')], max_length=20)), ('sub_category', models.CharField( blank=True, choices=[('Mobiles', 'Mobiles'), ('Mobile_Accessories', 'Mobile Accessories'), ('Laptops', 'Laptops'), ('Desktop_PC', 'Desktop PC'), ('Tablets', 'Tablets'), ('Television', 'Television'), ('Air_Conditioner', 'Air Conditioner'), ('Refrigerator', 'Refrigerator'), ('Washing_Machine', 'Washing Machine'), ('Kitchen_Appliances', 'Kitchen Appliances'), ('T_Shirt', 'T-Shirt'), ('Jeans', 'Jeans'), ('Inner_Wear', 'Inner Wear'), ('Western_Wear', 'Western Wear'), ('Ethnic_Wear', 'Ethnic Wear'), ('Kurti', 'Kurti'), ('Footwear', 'Footwear'), ('Sunglasses', 'Sunglasses'), ('Backpack', 'Backpack'), ('Handbag', 'Handbag'), ('Belt', 'Belt')], max_length=20)), ('image', models.FileField(upload_to='banner_images/')), ('is_active', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Wishlist', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('customer', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Product')), ], ), migrations.AddField( model_name='product', name='product_category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.ProductCategory'), ), migrations.AddField( model_name='ordereditems', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Product'), ), migrations.AddField( model_name='featuredproducts', name='product', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.Product'), ), migrations.AddField( model_name='cartitems', name='product', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.Product'), ), migrations.AddField( model_name='cartitems', name='product_img', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.ProductImage'), ), migrations.AddField( model_name='attribute', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Product'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('email', models.EmailField(max_length=50, unique=True)), ('is_activate', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nickName', models.CharField(max_length=20)), ('create_on', models.DateTimeField(auto_now_add=True)), ('img', models.ImageField(blank=True, null=True, upload_to=core.models.upload_path)), ('userPro', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='userPro', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.CharField(max_length=140)), ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to=settings.AUTH_USER_MODEL)), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FriendRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('approved', models.BooleanField(default=False)), ('askFrom', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='askFrom', to=settings.AUTH_USER_MODEL)), ('askTo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='askTo', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('email', models.EmailField(max_length=255, unique=True)), ('name', models.CharField(max_length=255)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Ingredient', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.User')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.User')), ], ), migrations.CreateModel( name='Recipe', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('time_minutes', models.IntegerField()), ('price', models.DecimalField(decimal_places=2, max_digits=5)), ('link', models.CharField(blank=True, max_length=255)), ('image', models.ImageField( null=True, upload_to=core.models.recipe_image_file_path)), ('ingredients', models.ManyToManyField(to='core.Ingredient')), ('tags', models.ManyToManyField(to='core.Tag')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.User')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0021_image_file_hash'), ('wagtailmedia', '0003_copy_media_permissions_to_collections'), ('export_readiness', '0019_auto_20180905_1350'), ('wagtailcore', '0040_page_draft_title'), ] operations = [ migrations.CreateModel( name='ArticleListingPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('landing_page_title', models.CharField(max_length=255)), ('hero_teaser', models.CharField(blank=True, max_length=255, null=True)), ('list_teaser', core.model_fields.MarkdownField(blank=True, null=True, validators=[core.validators.slug_hyperlinks])), ('hero_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='ArticlePage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('article_title', models.CharField(max_length=255)), ('article_teaser', models.CharField(max_length=255)), ('article_body_text', core.model_fields.MarkdownField(validators=[core.validators.slug_hyperlinks])), ('related_article_one_url', models.CharField(help_text='Paste the article path here (eg /foo/bar/)', max_length=255)), ('related_article_one_title', models.CharField(help_text='Paste the title of the article here', max_length=255)), ('related_article_one_teaser', models.CharField(help_text='Paste the article description here (max 255 characters)', max_length=255)), ('related_article_two_url', models.CharField(help_text='Paste the article path here (eg /foo/bar/)', max_length=255)), ('related_article_two_title', models.CharField(help_text='Paste the title of the article here', max_length=255)), ('related_article_two_teaser', models.CharField(help_text='Paste the article description here (max 255 characters)', max_length=255)), ('related_article_three_url', models.CharField(help_text='Paste the article path here (eg /foo/bar/)', max_length=255)), ('related_article_three_title', models.CharField(help_text='Paste the title of the article here', max_length=255)), ('related_article_three_teaser', models.CharField(help_text='Paste the article description here (max 255 characters)', max_length=255)), ('article_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='TopicLandingPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('landing_page_title', models.CharField(max_length=255)), ('hero_teaser', models.CharField(blank=True, max_length=255, null=True)), ('hero_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.RemoveField( model_name='newgetfinancepage', name='evidence_video_embed', ), migrations.AddField( model_name='newgetfinancepage', name='evidence_video', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailmedia.Media'), ), migrations.CreateModel( name='HomePage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('news_title', models.CharField(max_length=255)), ('news_description', core.model_fields.MarkdownField(validators=[core.validators.slug_hyperlinks])), ], options={ 'abstract': False, }, bases=(core.models.ExclusivePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='EUExitInternationalFormPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('breadcrumbs_label', models.CharField(max_length=50)), ('first_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('first_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('last_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('last_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('email_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('email_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('organisation_type_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('organisation_type_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('company_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('company_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('country_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('country_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('city_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('city_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('comment_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('comment_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('body_text', core.model_fields.MarkdownField(default='', validators=[core.validators.slug_hyperlinks])), ('heading', models.CharField(default='', max_length=255)), ('submit_button_text', models.CharField(default='', max_length=50)), ], options={ 'abstract': False, }, bases=(core.models.ExclusivePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('slug', models.CharField(blank=True, max_length=255)), ], bases=(wagtail.search.index.Indexed, models.Model), ), migrations.AddField( model_name='articlepage', name='tags', field=models.ManyToManyField(blank=True, to='export_readiness.Tag'), ), migrations.CreateModel( name='EUExitDomesticFormPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('breadcrumbs_label', models.CharField(max_length=50)), ('first_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('first_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('last_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('last_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('email_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('email_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('organisation_type_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('organisation_type_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('company_name_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('company_name_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('comment_help_text', core.wagtail_fields.FormHelpTextField(blank=True, max_length=200, null=True, verbose_name='Help text')), ('comment_label', core.wagtail_fields.FormLabelField(max_length=200, verbose_name='label')), ('body_text', core.model_fields.MarkdownField(default='', validators=[core.validators.slug_hyperlinks])), ('heading', models.CharField(default='', max_length=255)), ('submit_button_text', models.CharField(default='', max_length=50)), ], options={ 'abstract': False, }, bases=(core.models.ExclusivePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='EUExitFormSuccessPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('service_name', models.CharField(choices=[('FIND_A_SUPPLIER', 'Find a Supplier'), ('EXPORT_READINESS', 'Export Readiness'), ('INVEST', 'Invest')], db_index=True, max_length=100, null=True)), ('breadcrumbs_label', models.CharField(max_length=50)), ('heading', models.CharField(max_length=255, verbose_name='Title')), ('body_text', models.CharField(max_length=255, verbose_name='Body text')), ('next_title', models.CharField(max_length=255, verbose_name='Title')), ('next_body_text', models.CharField(max_length=255, verbose_name='Body text')), ], options={ 'abstract': False, }, bases=(core.models.ExclusivePageMixin, 'wagtailcore.page'), ), migrations.AlterField( model_name='articlepage', name='related_article_one_teaser', field=models.CharField(blank=True, help_text='Paste the article description here (max 255 characters)', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_one_title', field=models.CharField(blank=True, help_text='Paste the title of the article here', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_one_url', field=models.CharField(blank=True, help_text='Paste the article path here (eg /foo/bar/)', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_three_teaser', field=models.CharField(blank=True, help_text='Paste the article description here (max 255 characters)', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_three_title', field=models.CharField(blank=True, help_text='Paste the title of the article here', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_three_url', field=models.CharField(blank=True, help_text='Paste the article path here (eg /foo/bar/)', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_two_teaser', field=models.CharField(blank=True, help_text='Paste the article description here (max 255 characters)', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_two_title', field=models.CharField(blank=True, help_text='Paste the title of the article here', max_length=255, null=True), ), migrations.AlterField( model_name='articlepage', name='related_article_two_url', field=models.CharField(blank=True, help_text='Paste the article path here (eg /foo/bar/)', max_length=255, null=True), ), ]