Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust migration to search on plugin pk only
Browse files Browse the repository at this point in the history
jacobtylerwalls committed Feb 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d6a7471 commit 1aff227
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
@@ -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):

0 comments on commit 1aff227

Please sign in to comment.