33import django .db .migrations .operations .special
44import django .db .models .deletion
55import opaque_keys .edx .django .models
6- import openedx_learning . lib .fields
7- import openedx_learning . lib .validators
6+ import openedx_django_lib .fields
7+ import openedx_django_lib .validators
88import uuid
99from django .conf import settings
1010from django .db import migrations , models
@@ -107,8 +107,8 @@ class Migration(migrations.Migration):
107107 ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
108108 ('context_key' , opaque_keys .edx .django .models .CourseKeyField (help_text = 'Linking status for course context key' , max_length = 255 , unique = True )),
109109 ('status' , models .CharField (choices = [('pending' , 'Pending' ), ('processing' , 'Processing' ), ('failed' , 'Failed' ), ('completed' , 'Completed' )], help_text = 'Status of links in given learning context/course.' , max_length = 20 )),
110- ('created' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
111- ('updated' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
110+ ('created' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
111+ ('updated' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
112112 ],
113113 options = {
114114 'verbose_name' : 'Learning Context Links status' ,
@@ -121,13 +121,13 @@ class Migration(migrations.Migration):
121121 ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
122122 ('uuid' , models .UUIDField (default = uuid .uuid4 , editable = False , unique = True , verbose_name = 'UUID' )),
123123 ('upstream_usage_key' , opaque_keys .edx .django .models .UsageKeyField (help_text = 'Upstream block usage key, this value cannot be null and useful to track upstream library blocks that do not exist yet' , max_length = 255 )),
124- ('upstream_context_key' , openedx_learning . lib .fields .MultiCollationCharField (db_collations = {'mysql' : 'utf8mb4_bin' , 'sqlite' : 'BINARY' }, db_index = True , help_text = 'Upstream context key i.e., learning_package/library key' , max_length = 500 )),
124+ ('upstream_context_key' , openedx_django_lib .fields .MultiCollationCharField (db_collations = {'mysql' : 'utf8mb4_bin' , 'sqlite' : 'BINARY' }, db_index = True , help_text = 'Upstream context key i.e., learning_package/library key' , max_length = 500 )),
125125 ('downstream_usage_key' , opaque_keys .edx .django .models .UsageKeyField (max_length = 255 , unique = True )),
126126 ('downstream_context_key' , opaque_keys .edx .django .models .CourseKeyField (db_index = True , max_length = 255 )),
127127 ('version_synced' , models .IntegerField ()),
128128 ('version_declined' , models .IntegerField (blank = True , null = True )),
129- ('created' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
130- ('updated' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
129+ ('created' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
130+ ('updated' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
131131 ('upstream_block' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'links' , to = 'openedx_content.component' )),
132132 ],
133133 options = {
@@ -140,13 +140,13 @@ class Migration(migrations.Migration):
140140 fields = [
141141 ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
142142 ('uuid' , models .UUIDField (default = uuid .uuid4 , editable = False , unique = True , verbose_name = 'UUID' )),
143- ('upstream_context_key' , openedx_learning . lib .fields .MultiCollationCharField (db_collations = {'mysql' : 'utf8mb4_bin' , 'sqlite' : 'BINARY' }, db_index = True , help_text = 'Upstream context key i.e., learning_package/library key' , max_length = 500 )),
143+ ('upstream_context_key' , openedx_django_lib .fields .MultiCollationCharField (db_collations = {'mysql' : 'utf8mb4_bin' , 'sqlite' : 'BINARY' }, db_index = True , help_text = 'Upstream context key i.e., learning_package/library key' , max_length = 500 )),
144144 ('downstream_usage_key' , opaque_keys .edx .django .models .UsageKeyField (max_length = 255 , unique = True )),
145145 ('downstream_context_key' , opaque_keys .edx .django .models .CourseKeyField (db_index = True , max_length = 255 )),
146146 ('version_synced' , models .IntegerField ()),
147147 ('version_declined' , models .IntegerField (blank = True , null = True )),
148- ('created' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
149- ('updated' , models .DateTimeField (validators = [openedx_learning . lib .validators .validate_utc_datetime ])),
148+ ('created' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
149+ ('updated' , models .DateTimeField (validators = [openedx_django_lib .validators .validate_utc_datetime ])),
150150 ('upstream_container_key' , opaque_keys .edx .django .models .ContainerKeyField (help_text = 'Upstream block key (e.g. lct:...), this value cannot be null and is useful to track upstream library blocks that do not exist yet or were deleted.' , max_length = 255 )),
151151 ('upstream_container' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'links' , to = 'openedx_content.container' )),
152152 ],
0 commit comments