#NEWLINE# def create_advert( ) : #NEWLINE# #INDENT# ' Simple helper to create a single ad ' #NEWLINE# ( advertiser , category , zone ) = create_objects ( ) #NEWLINE# ad = AdBase . objects . create ( title = 'Ad Title' , url = 'www.example.com' , advertiser = advertiser , category = category , zone = zone ) #NEWLINE# ad . sites = [ Site . objects . get_current ( ) ] #NEWLINE# return category