Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Nov 28, 2023
1 parent 2c77b8c commit 5cbff69
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions adhocracy4/modules/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ItemAdmin(admin.ModelAdmin):

class ModuleAdmin(admin.ModelAdmin):
inlines = [phase_admin.PhaseInline]
search_fields = ["name"]
list_filter = ("project__organisation", "project")
list_display = ("__str__", "name")
if hasattr(settings, "A4_BLUEPRINT_TYPES"):
Expand Down
17 changes: 17 additions & 0 deletions adhocracy4/modules/migrations/0009_alter_module_blueprint_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2 on 2023-11-28 13:54

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("a4modules", "0008_alter_module_blueprint_type"),
]

operations = [
migrations.AlterField(
model_name="module",
name="blueprint_type",
field=models.CharField(blank=True, max_length=255),
),
]
4 changes: 1 addition & 3 deletions adhocracy4/modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from adhocracy4.models import base
from adhocracy4.projects import models as project_models

from .fields import BlueprintTypeField


class ModulesQuerySet(models.QuerySet):
def annotate_module_start(self):
Expand Down Expand Up @@ -95,7 +93,7 @@ class Module(models.Model):

objects = ModulesQuerySet.as_manager()

blueprint_type = BlueprintTypeField(
blueprint_type = models.CharField(
max_length=255,
blank=True,
)
Expand Down

0 comments on commit 5cbff69

Please sign in to comment.