def create_benefit(benefit_class, **kwargs):
 if (benefit_class.description is Benefit.description):
  raise RuntimeError("Your custom benefit must implement its own 'description' property")
 return Benefit.objects.create(proxy_class=_class_path(benefit_class), **kwargs)

def create_benefit ( benefit_class , ** kwargs ) : if ( benefit_class . description is Benefit . description ) : raise RuntimeError ( "Your custom benefit must implement its own 'description' property" ) return Benefit . objects . create ( proxy_class = _class_path ( benefit_class ) , ** kwargs )
create a custom benefit instance .