def generate_addon_user_and_category(addon, user, category):
 AddonUser.objects.create(addon=addon, user=user)
 AddonCategory.objects.create(addon=addon, category=category, feature=True)

def generate_addon_user_and_category ( addon , user , category ) : AddonUser . objects . create ( addon = addon , user = user ) AddonCategory . objects . create ( addon = addon , category = category , feature = True )
generate the dedicated addonuser and addoncategory for the given addon and user .