Skip to content

Instantly share code, notes, and snippets.

@python-consulting
Created February 2, 2016 13:19
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