old_contents: from django.contrib import admin
  
  from .models import Project, Task
  
  
  class TaskInline(admin.TabularInline):
      model = Task
      extra = 1
  
  
  @admin.register(Project)
  class ProjectAdmin(admin.ModelAdmin):
      list_display = ('title', 'status', 'maintainer', 'progress')
      list_filter = ('status',)
      search_fields = ('title', 'description', 'requirements', 'content')
  
      filter_horizontal = ('participants', 'dependencies')
      inlines = (TaskInline,)
  
  
  @admin.register(Task)
  class TaskAdmin(admin.ModelAdmin):
      list_display = ('name', 'project', 'completed')
  
new_contents: from django.contrib import admin
  
  from .models import Project, Task
  
  
  class TaskInline(admin.TabularInline):
      model = Task
      extra = 1
  
  
  @admin.register(Project)
  class ProjectAdmin(admin.ModelAdmin):
      list_display = ('title', 'status', 'maintainer', 'progress')
      list_filter = ('status',)
      search_fields = ('title', 'short_description', 'requirements', 'content')
  
      filter_horizontal = ('participants', 'dependencies')
      inlines = (TaskInline,)
  
  
  @admin.register(Task)
  class TaskAdmin(admin.ModelAdmin):
      list_display = ('name', 'project', 'completed')
  
subject: Fix https://sentry.urlab.be/urlab/incubator/issues/396/ (incubator-q)