Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

Given an IntegerField named 'widgets' in the Django model 'User' , how do you calculate the average number of widgets per user?

User.objects.avg( 'widgets' )
User.all().aggregate( Avg( 'widgets' ) ).count()
Widget.objects.all().aggregate( Avg( 'users' ) )
User.objects.all().aggregate( Avg( 'widgets' ) )
User.objects.all().aggregate( Sum( 'widgets' ) )
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon