from django.contrib import admin
from clowder_account.models import ClowderUser, ClowderUserAdmin
from clowder_server.models import Alert, Ping

admin.site.register(Alert)
admin.site.register(ClowderUser, ClowderUserAdmin)
admin.site.register(Ping)

from django.contrib import admin
from clowder_account.models import ClowderUser, ClowderUserAdmin
from clowder_server.models import Alert, Ping

admin.site.register(Alert)
admin.site.register(ClowderUser, ClowderUserAdmin)

@admin.register(Ping)
class PingAdmin(admin.ModelAdmin):
    list_filter = ('user',)

Add list filter for searching
ADMIN: Add list filter for searching

  from django.contrib import admin
  from clowder_account.models import ClowderUser, ClowderUserAdmin
  from clowder_server.models import Alert, Ping
  
  admin.site.register(Alert)
  admin.site.register(ClowderUser, ClowderUserAdmin)
- admin.site.register(Ping)
  
+ @admin.register(Ping)
+ class PingAdmin(admin.ModelAdmin):
+     list_filter = ('user',)
+ 
Add list filter for searching
## Code Before:
from django.contrib import admin
from clowder_account.models import ClowderUser, ClowderUserAdmin
from clowder_server.models import Alert, Ping

admin.site.register(Alert)
admin.site.register(ClowderUser, ClowderUserAdmin)
admin.site.register(Ping)

## Instruction:
Add list filter for searching
## Code After:
from django.contrib import admin
from clowder_account.models import ClowderUser, ClowderUserAdmin
from clowder_server.models import Alert, Ping

admin.site.register(Alert)
admin.site.register(ClowderUser, ClowderUserAdmin)

@admin.register(Ping)
class PingAdmin(admin.ModelAdmin):
    list_filter = ('user',)
