Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
http://luc.lino-framework.org/blog/2017/1217.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaffre committed Dec 17, 2017
1 parent 26bc6e0 commit fe39ea9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lino_book/projects/min9/modlib/contacts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
from lino.modlib.comments.mixins import Commentable
from lino_xl.lib.cal.workflows import feedback

from lino_xl.lib.addresses.mixins import AddressOwner
# from lino_xl.lib.addresses.mixins import AddressOwner
from lino_xl.lib.dupable_partners.mixins import DupablePartner, DupablePerson


class Partner(Partner, AddressOwner, mixins.CreatedModified, DupablePartner, Commentable):
class Partner(Partner, mixins.CreatedModified, DupablePartner, Commentable):
"""A Partner as seen in `lino.projects.min2`. It does not define any
specific field but inherits from a specific set of mixins.
"""

hidden_columns = 'created modified'

def get_overview_elems(self, ar):
# In the base classes, Partner must come first because
# otherwise Django won't inherit `meta.verbose_name`. OTOH we
# want to get the `get_overview_elems` from AddressOwner, not
# from Partner (i.e. AddressLocation).
elems = super(Partner, self).get_overview_elems(ar)
elems += AddressOwner.get_overview_elems(self, ar)
return elems
# def get_overview_elems(self, ar):
# # In the base classes, Partner must come first because
# # otherwise Django won't inherit `meta.verbose_name`. OTOH we
# # want to get the `get_overview_elems` from AddressOwner, not
# # from Partner (i.e. AddressLocation).
# elems = super(Partner, self).get_overview_elems(ar)
# elems += AddressOwner.get_overview_elems(self, ar)
# return elems


class PartnerDetail(PartnerDetail):
Expand Down

0 comments on commit fe39ea9

Please sign in to comment.