How to print all model fields ignoring reverse related and relates fields

前端 未结 0 1338
眼角桃花
眼角桃花 2021-01-16 09:32

I am trying to print all model fields and their values as follows

  def pretty_print_model_fields(m: Model):
        if not m:
            data = None
                


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