from django.contrib import admin

from .models import Submission


class SubmissionAdmin(admin.ModelAdmin):
    list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', )

admin.site.register(Submission, SubmissionAdmin)


from django.contrib import admin

from .models import Submission


class SubmissionAdmin(admin.ModelAdmin):
    list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', )
    list_editable = ( 'featured', 'hidden' )

admin.site.register(Submission, SubmissionAdmin)


Make featured and hidden flags editable from demo listing
Make featured and hidden flags editable from demo listing

  from django.contrib import admin
  
  from .models import Submission
  
  
  class SubmissionAdmin(admin.ModelAdmin):
      list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', )
+     list_editable = ( 'featured', 'hidden' )
  
  admin.site.register(Submission, SubmissionAdmin)
  
  
Make featured and hidden flags editable from demo listing
## Code Before:
from django.contrib import admin

from .models import Submission


class SubmissionAdmin(admin.ModelAdmin):
    list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', )

admin.site.register(Submission, SubmissionAdmin)


## Instruction:
Make featured and hidden flags editable from demo listing
## Code After:
from django.contrib import admin

from .models import Submission


class SubmissionAdmin(admin.ModelAdmin):
    list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', )
    list_editable = ( 'featured', 'hidden' )

admin.site.register(Submission, SubmissionAdmin)

