Exemple #1
0
 def mk_msg_cost(self, account=None, tag_pool=None, **kw):
     if account is None:
         account = Account.objects.get(
             user=self.user_helper.get_django_user())
     if tag_pool is None:
         tag_pool = TagPool(name=u"pool", description=u"description")
         tag_pool.save()
     return MessageCost(account=account, tag_pool=tag_pool, **kw)