from django.contrib import admin
from .models import Webhook

admin.site.register(Webhook)

from django.contrib import admin
from .models import Webhook

class WebhookAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'event', 'url')
    list_editable = ('event', 'url')
    list_filter = ('event',)

admin.site.register(Webhook, WebhookAdmin)

Add custom ModelAdmin for easier editing from list view
Add custom ModelAdmin for easier editing from list view
  from django.contrib import admin
  from .models import Webhook
  
- admin.site.register(Webhook)
+ class WebhookAdmin(admin.ModelAdmin):
+     list_display = ('__unicode__', 'event', 'url')
+     list_editable = ('event', 'url')
+     list_filter = ('event',)
  
+ admin.site.register(Webhook, WebhookAdmin)
+ 
Add custom ModelAdmin for easier editing from list view
## Code Before:
from django.contrib import admin
from .models import Webhook

admin.site.register(Webhook)

## Instruction:
Add custom ModelAdmin for easier editing from list view
## Code After:
from django.contrib import admin
from .models import Webhook

class WebhookAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'event', 'url')
    list_editable = ('event', 'url')
    list_filter = ('event',)

admin.site.register(Webhook, WebhookAdmin)
