diff --git a/src/chains/admin.py b/src/chains/admin.py index 82bd9fa4..3a460e82 100644 --- a/src/chains/admin.py +++ b/src/chains/admin.py @@ -58,4 +58,4 @@ class WalletAdmin(admin.ModelAdmin[Wallet]): @admin.register(Feature) class FeatureAdmin(admin.ModelAdmin[Feature]): - list_display = ("key",) + list_display = ("key", "description") diff --git a/src/chains/migrations/0045_populate_feature_description.py b/src/chains/migrations/0045_populate_feature_description.py new file mode 100644 index 00000000..0b2f22a0 --- /dev/null +++ b/src/chains/migrations/0045_populate_feature_description.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0.8 on 2024-11-21 13:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("chains", "0044_chain_beacon_chain_explorer_uri_public_key_template"), + ] + + operations = [ + migrations.AddField( + model_name="feature", + name="description", + field=models.CharField(max_length=255, default=''), + ), + ] diff --git a/src/chains/models.py b/src/chains/models.py index 99d14fc5..66b39ccc 100644 --- a/src/chains/models.py +++ b/src/chains/models.py @@ -254,6 +254,8 @@ class Feature(models.Model): max_length=255, help_text="The unique name/key that identifies this feature", ) + description = models.CharField(max_length=255, default="") + def __str__(self) -> str: return f"Chain Feature: {self.key}"