class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Institution', '0001_initial'), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('google_id', models.CharField(blank=True, max_length=100, null=True)), ('mobile_no', phonenumber_field.modelfields.PhoneNumberField(max_length=128, null=True, region=None, unique=True)), ('cur_rating', models.IntegerField(null=True)), ('have_profile_image', models.ImageField(null=True, upload_to=Profile.models.UploadToPathAndRename('upload\\profile_image'))), ('institution_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='Institution.institution')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Profile', 'verbose_name_plural': 'Profiles', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address', models.CharField(max_length=250)), ('contact_number', models.CharField(max_length=12)), ('profile_picture', models.ImageField( upload_to=Profile.models.user_directory_path)), ('user', 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='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('upload_date', models.DateTimeField(auto_now_add=True)), ('caption', models.CharField(blank=True, max_length=200, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='PostImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=Profile.models.upload_path)), ('Post', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Profile.post')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserProfileModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('owner', models.ForeignKey(on_delete=models.SET(Profile.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Profile', '0003_auto_20180911_1629'), ] operations = [ migrations.CreateModel( name='ProfilePic', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', models.FileField(upload_to=Profile.models.user_directory_path)), ('upload_date', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='picture', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254)), ('customer_id', models.CharField(blank=True, max_length=120, null=True)), ('location', models.CharField(blank=True, max_length=50)), ('GraduationDate', models.DateField(blank=True, null=True)), ('aboutme', models.TextField(blank=True, max_length=300)), ('experience', models.TextField(blank=True, max_length=300)), ('preferences', models.TextField(blank=True, max_length=300)), ('role', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Student'), (2, 'Teacher'), (3, 'Supervisor')], null=True)), ('major', models.PositiveSmallIntegerField( blank=True, choices=[(1, 'Computer Engineering'), (2, 'Computer Science'), (3, 'Software Engineering'), (4, 'Electrical Engineering')], null=True)), ('image', models.ImageField( blank=True, null=True, upload_to=Profile.models.upload_image_path)), ('featured', models.BooleanField(default=False)), ('active', models.BooleanField(default=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('is_digital', models.BooleanField(default=False)), ('user', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ProfileFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Profile.Profile')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Area', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('a_name', models.CharField(max_length=500, verbose_name='Area Name')), ], ), migrations.CreateModel( name='Field', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('f_name', models.CharField(max_length=500, verbose_name='Field Name')), ], ), migrations.CreateModel( name='Profile', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('user_dob', models.DateField(blank=True, null=True, verbose_name='Date of Birth')), ('user_gender', models.CharField(choices=[('Female', 'Female'), ('Male', 'Male')], max_length=6, verbose_name='Gender')), ('user_address', models.TextField(max_length=500, verbose_name='Address')), ('user_photo', models.FileField(blank=True, default='', null=True, upload_to='', verbose_name='Profile Picture')), ('user_type', models.CharField(choices=[('Admin', 'Admin'), ('Supervisor', 'Supervisor'), ('Student', 'Student')], max_length=10, verbose_name='User Type')), ('user_status', models.CharField(choices=[('Active', 'Active'), ('Terminated', 'Terminated'), ('Graduated', 'Graduated')], default='Active', max_length=10, verbose_name='Academic Status')), ('user_feesOwed', models.DecimalField(decimal_places=2, default=0, max_digits=7, verbose_name='Outstanding Payment')), ('stud_type', models.CharField(blank=True, choices=[('By Research', 'By Research'), ('By Coursework', 'By Coursework')], max_length=13, null=True, verbose_name='Student Type')), ('br_title', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='Research Title')), ('br_progress', models.CharField(choices=[ ('None', 'None'), ('Proposal Defense', 'Proposal Defense'), ('Work Completion Seminar', 'Work Completion Seminar'), ('Thesis Examination', 'Thesis Examination'), ('Viva Voce', 'Viva Voce'), ('Completed', 'Completed') ], default='None', max_length=23, verbose_name='Research Progress')), ('bc_cgpa', Profile.models.MinMaxFloat(default=0.0, verbose_name='CGPA')), ('user_area', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Profile.Area', verbose_name='Area')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Supervise', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('s_cosupervisor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cosupervisor', to=settings.AUTH_USER_MODEL, verbose_name='Co-supervisor')), ('s_student', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='student_2', to=settings.AUTH_USER_MODEL, verbose_name='Student')), ('s_supervisor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='supervisor', to=settings.AUTH_USER_MODEL, verbose_name='Supervisor')), ], ), migrations.AddField( model_name='area', name='a_field', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Profile.Field'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=30)), ('created_on', models.DateField(default=datetime.date.today)), ('type', models.CharField(choices=[('Family', 'Family'), ('Friends', 'Friends'), ('Business', 'Business'), ('Society', 'Society')], default=Profile.models.groupType['Family'], max_length=10)), ('adm_settings', models.CharField(choices=[('Admin', 'Admin only'), ('Everyone', 'Everyone')], default=Profile.models.adm['Everyone'], max_length=10)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(blank=True, max_length=17)), ('location', models.CharField(blank=True, default='Blank', max_length=30)), ('key', models.CharField(blank=True, max_length=100, unique=True)), ('enable_authenticator', models.BooleanField(default=False)), ('verified', models.BooleanField(default=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='group_Member', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('joined_on', models.DateField(default=datetime.date.today, verbose_name='Date')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Profile.group')), ('member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Profile.Profile')), ], ), migrations.AddField( model_name='group', name='admin', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Profile.Profile'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='Profile', 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=30, 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')), ('type', models.CharField(blank=True, choices=[('Student', 'Student'), ('Teacher', 'Teacher')], default='Student', max_length=10)), ('avatar', models.ImageField(default='static/defaults/!default_user_avatar/user.gif', upload_to=Profile.models.user_directory_path)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='StudentUser', fields=[ ('profile_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=(Profile.models.UserManager, 'Profile.profile'), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='TeacherUser', fields=[ ('profile_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=(Profile.models.UserManager, 'Profile.profile'), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AddField( model_name='profile', 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='profile', 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'), ), ]