How do I filter by id in a model

后端 未结 0 734
醉梦人生
醉梦人生 2020-12-13 18:19

I am trying to filter using a pk of a Classroom model for the following view.

def dashboard(request, m_id):
    klass = Classroom.objects.get(id=m_id)
    con         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题