Vikram Tripathi

Vikram Tripathi

  • NA
  • 108
  • 8.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 method return 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)