Skip to content
Snippets Groups Projects
Unverified Commit e56eaceb authored by Robert Raposa's avatar Robert Raposa Committed by GitHub
Browse files

ARCHBOM-1105: fix migration issues (#23708)


* fix direct assignment error
* fix byte string error

ARCHBOM-1105

Co-authored-by: default avatarAwais Qureshi <awais.qureshi@arbisoft.com>
parent 02a70225
No related branches found
Tags release-2021-05-10-06.20
No related merge requests found
......@@ -35,7 +35,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('mode', models.CharField(help_text='The course mode for this badge image. For example, "verified" or "honor".', unique=True, max_length=125)),
('icon', models.ImageField(help_text='Badge images must be square PNG files. The file size should be under 250KB.', upload_to=b'badges', validators=[validate_badge_image])),
('icon', models.ImageField(help_text='Badge images must be square PNG files. The file size should be under 250KB.', upload_to='badges', validators=[validate_badge_image])),
('default', models.BooleanField(default=False, help_text='Set this value to True if you want this image to be the default image for any course modes that do not have a specified badge image. You can have only one default image.')),
],
),
......
......@@ -14,7 +14,7 @@ def add_api_access_group(apps, schema_editor):
group, __ = Group.objects.get_or_create(name=API_GROUP_NAME)
api_content_type = ContentType.objects.get_for_model(ApiAccessRequest)
group.permissions = Permission.objects.filter(content_type=api_content_type)
group.permissions.set(Permission.objects.filter(content_type=api_content_type))
group.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment