first() method is not available in edx django version