class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject_name', models.CharField(max_length=24)), ('subject_code', models.CharField( max_length=10, validators=[ django.core.validators.RegexValidator( '^[0-9a-zA-Z-]*$', 'Only alphanumeric characters are allowed.') ])), ('description', models.CharField( max_length=100, validators=[ django.core.validators.RegexValidator( '^[0-9a-zA-Z-]*$', 'Only alphanumeric characters are allowed.') ])), ], options={ 'verbose_name': 'Subject', 'verbose_name_plural': 'Subjects', }, ), migrations.CreateModel( name='Notes', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40)), ('date', models.DateField()), ('file_upload', models.FileField(upload_to=accounts.models.unique_file_path)), ('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.subject')), ], options={ 'verbose_name': 'Note', 'verbose_name_plural': 'Notes', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone_number', models.CharField(blank=True, max_length=11, null=True)), ('picture', models.FileField(blank=True, null=True, upload_to=accounts.models.upload_to)), ('sex', models.CharField(choices=[(1, '男'), (2, '女')], default=1, max_length=2)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('accounts', '0006_auto_20180410_1320'), ] operations = [ migrations.CreateModel( name='Certificate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_certificate', models.FileField( upload_to=accounts.models.scramble_uploaded_filename, verbose_name='certificates_files')), ('created_at', models.DateTimeField(auto_now_add=True)), ('current_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='graduate_user', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0012_auto_20180601_2147'), ] operations = [ migrations.CreateModel( name='ShopItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('product_name', models.CharField(max_length=50)), ('file', models.FileField(null=True, upload_to='')), ('img', models.ImageField(blank=True, null=True, upload_to=accounts.models.product_img_uh)), ('description', models.CharField(max_length=500)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Signup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40, unique=True)), ('uname', models.CharField(max_length=50, unique=True)), ('email', models.EmailField(max_length=30, unique=True)), ('password', models.CharField(max_length=30)), ('pic', models.FileField( blank=True, default='pic/default.png', null=True, upload_to=accounts.models.user_directory_path)), ], options={ 'db_table': 'signup', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('education', '0002_auto_20200927_1740'), ('accounts', '0005_auto_20200930_2257'), ] operations = [ migrations.RemoveField( model_name='student', name='course', ), migrations.AddField( model_name='student', name='course', field=models.ForeignKey( default=2, on_delete=django.db.models.deletion.CASCADE, to='education.course'), preserve_default=False, ), migrations.AlterField( model_name='student', name='resume', field=models.FileField( blank=True, null=True, upload_to='student_resume/', validators=[accounts.models.resume_validator]), ), ]
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')), ('dateOfBirth', models.DateField(blank=True, null=True)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='M', max_length=1)), ('phone', models.CharField(max_length=20)), ('city', models.CharField(max_length=50)), ('country', models.CharField(max_length=50)), ('height', models.SmallIntegerField( default=40, validators=[ django.core.validators.MaxValueValidator(300), django.core.validators.MinValueValidator(10) ])), ('weight', models.SmallIntegerField( default=40, validators=[ django.core.validators.MaxValueValidator(300), django.core.validators.MinValueValidator(10) ])), ('smoking', models.BooleanField(default=False)), ('profile_picture', models.FileField(blank=True, max_length=255, null=True, upload_to=accounts.models.upload_path)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0007_profile_audio_data'), ] operations = [ migrations.AlterField( model_name='profile', name='audio_data', field=models.FileField(null=True, upload_to=accounts.models.return_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_userprofile_profile_pic'), ] operations = [ migrations.AlterField( model_name='userprofile', name='profile_pic', field=models.FileField(default='media/profile_image/user_profile_pic_default.jpg', upload_to=accounts.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customuser', name='profile_photo', field=models.FileField(upload_to=accounts.models.get_photo_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20171104_1524'), ] operations = [ migrations.AddField( model_name='user', name='photo', field=models.FileField(blank=True, null=True, upload_to=accounts.models.user_photo_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='avatar', field=models.FileField(blank=True, default=None, null=True, upload_to=accounts.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20171024_1438'), ] operations = [ migrations.AlterField( model_name='profile', name='document', field=models.FileField( blank=True, upload_to=accounts.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20200117_2242'), ] operations = [ migrations.AddField( model_name='useraccount', name='file_user_css', field=models.FileField(default='null', upload_to=accounts.models.user_dir_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20201001_1638'), ] operations = [ migrations.AlterField( model_name='profile', name='image', field=models.FileField(blank=True, null=True, upload_to=accounts.models.image_upload), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0007_certificate'), ] operations = [ migrations.AlterField( model_name='certificate', name='user_certificate', field=models.FileField( upload_to=accounts.models.scramble_uploaded_filename, verbose_name='Certificates'), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='resume', field=models.FileField( blank=True, null=True, upload_to=accounts.models.user_directory_path), ), ]
class AssignmentWorkFile(models.Model): file = models.FileField(upload_to=upload_work_path) assignment_work = models.ForeignKey(AssignmentWork, on_delete=models.CASCADE, null=True, blank=True) def extension(self): name, extension = os.path.splitext(self.file.name) return extension[1:] def filename(self): return os.path.basename(self.file.name) def __str__(self): return '{} - {}'.format(self.assignment_work, self.file.name)
class Migration(migrations.Migration): dependencies = [ ('accounts', '0010_usereducation_userexperience'), ] operations = [ migrations.AddField( model_name='user', name='cv', field=models.FileField( blank=True, null=True, upload_to=accounts.models.user_filename_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20210321_1227'), ] operations = [ migrations.AlterField( model_name='user', name='avatar', field=models.FileField( default=None, null=True, upload_to=accounts.models.user_upload_avatar), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0016_auto_20191002_1122'), ] operations = [ migrations.AlterField( model_name='schoolfile', name='file', field=models.FileField( upload_to=accounts.models.path_and_rename, validators=[ django.core.validators.FileExtensionValidator( allowed_extensions=['pdf', 'doc', 'docx']) ]), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0020_alter_user_beneficiary_function'), ] operations = [ migrations.AddField( model_name='user', name='image', field=models.FileField( blank=True, help_text="Assurez vous que l'image n'est pas trop lourde.", null=True, upload_to=accounts.models.logo_upload_to, verbose_name="Avatar de l'utilisateur"), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20200110_2242'), ] operations = [ migrations.AddField( model_name='useraccount', name='img', field=models.FileField(default='null', upload_to=accounts.models.user_dir_path), ), migrations.AlterField( model_name='useraccount', name='username', field=models.CharField(default='noname', max_length=50), ), ]
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')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('username', models.CharField(max_length=30, verbose_name='username')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('first_name', models.CharField(max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')), ('date_of_birth', models.DateField()), ('address', models.CharField(max_length=300)), ('city', models.CharField(max_length=30)), ('state', models.CharField(max_length=30)), ('country', models.CharField(max_length=30)), ('mobile', models.CharField(max_length=10, unique=True)), ('avatar', models.FileField(blank=True, null=True, upload_to=accounts.models.folder_directory_path)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('password', models.CharField(max_length=300)), ('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', }, managers=[ ('objects', accounts.managers.UserManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_uploadvideo'), ] operations = [ migrations.AlterField( model_name='uploadvideo', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AlterField( model_name='uploadvideo', name='video', field=models.FileField( upload_to=accounts.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20200927_1719'), ] operations = [ migrations.AlterField( model_name='student', name='profile', field=models.ImageField(null=True, upload_to='student_profile/'), ), migrations.AlterField( model_name='student', name='resume', field=models.FileField( null=True, upload_to='student_resume/', validators=[accounts.models.resume_validator]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Drivers', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('dname', models.CharField(max_length=250)), ('dcontact', models.CharField(max_length=250)), ('daddress', models.TextField()), ('dlicense', models.CharField(max_length=250)), ('daadhar', models.DecimalField(decimal_places=0, max_digits=12)), ('dphoto', models.ImageField(upload_to=accounts.models.upload_photo)), ('dscan', models.FileField(upload_to=accounts.models.upload_file)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('accounts', '0011_user_cv'), ] operations = [ migrations.AddField( model_name='user', name='contact_me', field=models.BooleanField(default=False), ), migrations.AlterField( model_name='user', name='cv', field=models.FileField( blank=True, null=True, upload_to=accounts.models.user_filename_path, validators=[utils.validators.validate_file_doc_extension]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile', models.ImageField(null=True, upload_to='files/student_profile')), ('resume', models.FileField(null=True, upload_to='files/student_resume', validators=[accounts.models.resume_validator])), ('last_course', models.CharField(max_length=128)), ('created_at', models.DateField(auto_now_add=True)), ('last_seen', models.DateTimeField(auto_now=True)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('job', '__first__'), ('accounts', '0006_auto_20210117_1424'), ] operations = [ migrations.AlterField( model_name='company', name='logo', field=models.ImageField( blank=True, null=True, upload_to=accounts.models.upload_company_image), ), migrations.AlterField( model_name='employee', name='cv', field=models.FileField(blank=True, null=True, upload_to=accounts.models.upload_cv), ), migrations.AlterField( model_name='employee', name='image', field=models.ImageField(blank=True, null=True, upload_to=accounts.models.upload_image), ), migrations.AlterField( model_name='employee', name='jobs', field=models.ManyToManyField(blank=True, related_name='candidaties', to='job.Job'), ), ]