'None' has no attribute 'listingid'