from django.contrib import admin
from mrbelvedereci.trigger.models import Trigger

class TriggerAdmin(admin.ModelAdmin):
    list_display = ('repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
    list_filter = ('active', 'public', 'repo', 'org', 'type')
admin.site.register(Trigger, TriggerAdmin)

from django.contrib import admin
from mrbelvedereci.trigger.models import Trigger

class TriggerAdmin(admin.ModelAdmin):
    list_display = ('name', 'repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
    list_filter = ('active', 'public', 'type', 'org', 'repo')
admin.site.register(Trigger, TriggerAdmin)

Add name to trigger list view
Add name to trigger list view

  from django.contrib import admin
  from mrbelvedereci.trigger.models import Trigger
  
  class TriggerAdmin(admin.ModelAdmin):
-     list_display = ('repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
+     list_display = ('name', 'repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
-     list_filter = ('active', 'public', 'repo', 'org', 'type')
+     list_filter = ('active', 'public', 'type', 'org', 'repo')
  admin.site.register(Trigger, TriggerAdmin)
  
Add name to trigger list view
## Code Before:
from django.contrib import admin
from mrbelvedereci.trigger.models import Trigger

class TriggerAdmin(admin.ModelAdmin):
    list_display = ('repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
    list_filter = ('active', 'public', 'repo', 'org', 'type')
admin.site.register(Trigger, TriggerAdmin)

## Instruction:
Add name to trigger list view
## Code After:
from django.contrib import admin
from mrbelvedereci.trigger.models import Trigger

class TriggerAdmin(admin.ModelAdmin):
    list_display = ('name', 'repo', 'type', 'flows', 'org', 'regex', 'active', 'public')
    list_filter = ('active', 'public', 'type', 'org', 'repo')
admin.site.register(Trigger, TriggerAdmin)
