Skip to content

Commit

Permalink
Adjust migration to search on plugin pk only
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Feb 27, 2024
1 parent 48d4325 commit ea02252
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arches/app/models/migrations/10541_controlled_list_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

import django.db.models.deletion
from django.db import migrations, models
from django.utils.translation import gettext as _

from arches.app.models.fields.i18n import I18n_String

def add_plugins(apps, schema_editor):
Plugin = apps.get_model("models", "Plugin")

Plugin.objects.update_or_create(
Plugin(
pluginid="29321ce0-bd95-4357-a2a5-822e9cb06f70",
name=_("Controlled List Manager"),
name=I18n_String("Controlled List Manager"),
icon="fa fa-code-fork",
component="views/components/plugins/controlled-list-manager",
componentname="controlled-list-manager",
config={},
slug="controlled-list-manager",
sortorder=0,
)
).save()


def remove_plugin(apps, schema_editor):
Expand Down

0 comments on commit ea02252

Please sign in to comment.