Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class Migration(migrations.Migration):
dependencies = [
('coredata', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CareerEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('slug', autoslug.fields.AutoSlugField(editable=False)),
('start_date', models.DateField()),
('end_date', models.DateField(null=True, blank=True)),
('comments', models.TextField(blank=True)),
('event_type', models.CharField(max_length=10, choices=[(b'ADMINPOS', faculty.event_types.position.AdminPositionEventHandler), (b'APPOINT', faculty.event_types.career.AppointmentEventHandler), (b'AWARD', faculty.event_types.awards.AwardEventHandler), (b'COMMITTEE', faculty.event_types.info.CommitteeMemberHandler), (b'EXTERN_AFF', faculty.event_types.info.ExternalAffiliationHandler), (b'EXTSERVICE', faculty.event_types.info.ExternalServiceHandler), (b'FELLOW', faculty.event_types.awards.FellowshipEventHandler), (b'GRANTAPP', faculty.event_types.awards.GrantApplicationEventHandler), (b'NORM_TEACH', faculty.event_types.teaching.NormalTeachingLoadHandler), (b'LEAVE', faculty.event_types.career.OnLeaveEventHandler), (b'ONE_NINE', faculty.event_types.teaching.OneInNineHandler), (b'OTHER_NOTE', faculty.event_types.info.OtherEventHandler), (b'LABMEMB', faculty.event_types.info.ResearchMembershipHandler), (b'SALARY', faculty.event_types.career.SalaryBaseEventHandler), (b'STIPEND', faculty.event_types.career.SalaryModificationEventHandler), (b'SPCL_DEAL', faculty.event_types.info.SpecialDealHandler), (b'STUDYLEAVE', faculty.event_types.career.StudyLeaveEventHandler), (b'TEACHING', faculty.event_types.awards.TeachingCreditEventHandler), (b'TENUREAPP', faculty.event_types.career.TenureApplicationEventHandler), (b'ACCRED', faculty.event_types.career.AccreditationFlagEventHandler), (b'PROMOTION', faculty.event_types.career.PromotionApplicationEventHandler), (b'SALARYREV', faculty.event_types.career.SalaryReviewEventHandler), (b'CONTRACTRV', faculty.event_types.career.ContractReviewEventHandler)])),
('config', courselib.json_fields.JSONField(default={})),
('flags', bitfield.models.BitField([b'affects_teaching', b'affects_salary'], default=0)),
('status', models.CharField(default=b'', max_length=2, choices=[(b'NA', b'Needs Approval'), (b'A', b'Approved'), (b'D', b'Deleted')])),
('import_key', models.TextField(null=True, blank=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('person', models.ForeignKey(related_name='career_events', to='coredata.Person')),
('unit', models.ForeignKey(to='coredata.Unit')),
],
options={
'ordering': ('-start_date', '-end_date', 'event_type'),
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocumentAttachment',
fields=[