Vikram Tripathi

Vikram Tripathi

  • 1.8k
  • 97
  • 2.8k

Hi team, i used generic.RetrieveAPIVIEW class in drf django and i in t

Nov 29 2020 1:02 AM
Hi team, i used generic.RetrieveAPIVIEW class in drf django and i in this class i used get_object method in this methodreturn output=get_objects_or_404(mymodel,id=2)how can i add new field in this query? When i used output.newfield=4 it can not add this field to output

Answers (10)