Skip to content

Instantly share code, notes, and snippets.

@python-consulting
Created February 2, 2016 13:19
Show Gist options
  • Save python-consulting/a864b497ad19d61edf3f to your computer and use it in GitHub Desktop.
Save python-consulting/a864b497ad19d61edf3f to your computer and use it in GitHub Desktop.
List editable django admin
class LinearMeterAdmin(admin.ModelAdmin):
list_display = (
'section',
'spot_left_name',
'spot_left_bookable',
'spot_right_name',
'spot_right_bookable',
)
list_editable = (
'spot_left_name',
'spot_left_bookable',
'spot_right_name',
'spot_right_bookable',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment