def create_addon(name, icon_type, application, **extra_kwargs):
 kwargs = {'status': STATUS_PUBLIC, 'name': name, 'slug': slugify(name), 'bayesian_rating': random.uniform(1, 5), 'average_daily_users': random.randint(200, 2000), 'weekly_downloads': random.randint(200, 2000), 'created': datetime.now(), 'last_updated': datetime.now(), 'icon_type': icon_type}
 kwargs.update(extra_kwargs)
 addon = Addon.objects.create(type=ADDON_EXTENSION, **kwargs)
 generate_version(addon=addon, app=application)
 addon.update_version()
 addon.status = STATUS_PUBLIC
 addon.save()
 return addon

def create_addon ( name , icon_type , application , ** extra_kwargs ) : kwargs = { 'status' : STATUS_PUBLIC , 'name' : name , 'slug' : slugify ( name ) , 'bayesian_rating' : random . uniform ( 1 , 5 ) , 'average_daily_users' : random . randint ( 200 , 2000 ) , 'weekly_downloads' : random . randint ( 200 , 2000 ) , 'created' : datetime . now ( ) , 'last_updated' : datetime . now ( ) , 'icon_type' : icon_type } kwargs . update ( extra_kwargs ) addon = Addon . objects . create ( type = ADDON_EXTENSION , ** kwargs ) generate_version ( addon = addon , app = application ) addon . update_version ( ) addon . status = STATUS_PUBLIC addon . save ( ) return addon
create a skeleton addon .