Browse Source

[FIX] add missing self in super call

pull/44/head
Manuel Claeys Bouuaert 5 years ago
parent
commit
21e6158436
  1. 6
      easy_my_coop_be/models/coop.py

6
easy_my_coop_be/models/coop.py

@ -10,18 +10,18 @@ class SubscriptionRequest(models.Model):
('sa', 'SA')]) ('sa', 'SA')])
def get_partner_company_vals(self): def get_partner_company_vals(self):
vals = super(SubscriptionRequest).get_partner_company_vals()
vals = super(SubscriptionRequest, self).get_partner_company_vals()
vals['out_inv_comm_algorithm'] = 'random' vals['out_inv_comm_algorithm'] = 'random'
return vals return vals
def get_partner_vals(self): def get_partner_vals(self):
vals = super(SubscriptionRequest).get_partner_vals()
vals = super(SubscriptionRequest, self).get_partner_vals()
vals['out_inv_comm_type'] = 'bba' vals['out_inv_comm_type'] = 'bba'
vals['out_inv_comm_algorithm'] = 'random' vals['out_inv_comm_algorithm'] = 'random'
return vals return vals
def get_representative_valst(self): def get_representative_valst(self):
vals = super(SubscriptionRequest).get_representative_vals()
vals = super(SubscriptionRequest, self).get_representative_vals()
vals['out_inv_comm_type'] = 'bba' vals['out_inv_comm_type'] = 'bba'
vals['out_inv_comm_algorithm'] = 'random' vals['out_inv_comm_algorithm'] = 'random'
return vals return vals
Loading…
Cancel
Save