from django.contrib import admin
from django.contrib.admin import register

from falmer.events.models import Event


@register(Event)
class EventModelAdmin(admin.ModelAdmin):
    pass

from django.contrib import admin
from django.contrib.admin import register

from falmer.events.models import Event, MSLEvent


@register(Event)
class EventModelAdmin(admin.ModelAdmin):
    list_display = ('title', 'start_time', 'end_time', )

@register(MSLEvent)
class MSLEventModelAdmin(admin.ModelAdmin):
    pass

Improve list display of events
Improve list display of events

  from django.contrib import admin
  from django.contrib.admin import register
  
- from falmer.events.models import Event
+ from falmer.events.models import Event, MSLEvent
  
  
  @register(Event)
  class EventModelAdmin(admin.ModelAdmin):
+     list_display = ('title', 'start_time', 'end_time', )
+ 
+ @register(MSLEvent)
+ class MSLEventModelAdmin(admin.ModelAdmin):
      pass
  
Improve list display of events
## Code Before:
from django.contrib import admin
from django.contrib.admin import register

from falmer.events.models import Event


@register(Event)
class EventModelAdmin(admin.ModelAdmin):
    pass

## Instruction:
Improve list display of events
## Code After:
from django.contrib import admin
from django.contrib.admin import register

from falmer.events.models import Event, MSLEvent


@register(Event)
class EventModelAdmin(admin.ModelAdmin):
    list_display = ('title', 'start_time', 'end_time', )

@register(MSLEvent)
class MSLEventModelAdmin(admin.ModelAdmin):
    pass
