from django.contrib import admin

from .models import Ticket


class TicketAdmin(admin.ModelAdmin):
    list_display = ['name', 'display_name', 'created', 'updated', 'is_active', 'is_paid', 'twid']
    list_editable = ['created', 'updated', 'is_active', 'is_paid']
    ordering = ['-updated']
admin.site.register(Ticket, TicketAdmin)

from django.contrib import admin

from .models import Ticket


class TicketAdmin(admin.ModelAdmin):
    list_display = ['name', 'display_name', 'created', 'updated', 'streak', 'is_active', 'is_paid', 'twid']
    list_editable = ['is_active', 'is_paid']
    ordering = ['-updated']
admin.site.register(Ticket, TicketAdmin)

Add streak to list_display, remove created and updated from list_editable.
Add streak to list_display, remove created and updated from list_editable.

  from django.contrib import admin
  
  from .models import Ticket
  
  
  class TicketAdmin(admin.ModelAdmin):
-     list_display = ['name', 'display_name', 'created', 'updated', 'is_active', 'is_paid', 'twid']
+     list_display = ['name', 'display_name', 'created', 'updated', 'streak', 'is_active', 'is_paid', 'twid']
-     list_editable = ['created', 'updated', 'is_active', 'is_paid']
+     list_editable = ['is_active', 'is_paid']
      ordering = ['-updated']
  admin.site.register(Ticket, TicketAdmin)
  
Add streak to list_display, remove created and updated from list_editable.
## Code Before:
from django.contrib import admin

from .models import Ticket


class TicketAdmin(admin.ModelAdmin):
    list_display = ['name', 'display_name', 'created', 'updated', 'is_active', 'is_paid', 'twid']
    list_editable = ['created', 'updated', 'is_active', 'is_paid']
    ordering = ['-updated']
admin.site.register(Ticket, TicketAdmin)

## Instruction:
Add streak to list_display, remove created and updated from list_editable.
## Code After:
from django.contrib import admin

from .models import Ticket


class TicketAdmin(admin.ModelAdmin):
    list_display = ['name', 'display_name', 'created', 'updated', 'streak', 'is_active', 'is_paid', 'twid']
    list_editable = ['is_active', 'is_paid']
    ordering = ['-updated']
admin.site.register(Ticket, TicketAdmin)
