Django-tables2: How to use accessor to bring in foreign columns?

前端 未结 1 1234
滥情空心
滥情空心 2021-01-02 01:15

I\'ve tried reading the docs and previous answers to this question without much luck.

I\'ve got a bunch of student-course registrations and I\'d like to see some of

相关标签:
1条回答
  • 2021-01-02 02:04

    The model name in the accessor parameter of the column should be lowercase.

    Use accessor='student.netID' instead of accessor='Student.netID'.

    0 讨论(0)
提交回复
热议问题