Closed ntai closed 4 years ago
For example, this does not work.
class TeamViewSet(ModelViewSet): model = Team list_display = ('name') pass
That's python syntax, you should use list_display = ('name', )
list_display = ('name', )
For example, this does not work.
class TeamViewSet(ModelViewSet): model = Team list_display = ('name') pass