The Lino Book Logo
20.1
  • Welcome
  • How to make money with Lino
  • About Lino
  • Demo sites
  • Newbie Guide
  • Developer Guide
  • Contributor Guide
  • Hosting Guide
  • User Guide
  • Specs
    • Core plugins
    • Plugins of the Extensions Library
      • addresses : Multiple addresses per partner
      • ana: Analytical accounting
      • appypod : Generate printable documents from odt templates
      • b2c: BankToCustomer SEPA
      • bevat : Belgian VAT declarations
      • bevats : Simplified Belgian VAT declarations
      • c2b: Export SEPA CustomerToBank statements
      • cal : Calendar functionality
      • calview : Calendar view
      • clients : Manage clients and client contacts
      • coachings : Managing coachings
      • contacts : Managing contacts
      • countries : Countries and cities
      • courses : Managing courses
      • cv : Managing career-related data of clients
      • eevat : Estonian VAT declarations
      • events : Generating a static calendar of events
      • excerpts: Database excerpts
      • groups : user groups
      • healthcare : Manage healthcare providers
      • files : Manage external files
      • finan : Financial vouchers
      • households : handling households and their members
      • humanlinks : managing family relationships
        • Lars
      • invoicing : Generating invoices
      • ledger: General accounting
      • lists : Partner lists
      • notes: Notes
      • office : Adding an "Office" menu
      • orders : Managing orders
      • phones : Multiple phone numbers per partner (Contact details)
      • polls : managing questionnaires and responses
      • products : defining the things you sell and buy
      • properties : configurable properties
      • sales : Product invoices
      • sepa : Communicating with the bank using SEPA
      • sheets : Balance sheet and Income statement
      • tickets (Ticket management)
      • tim2lino : importing legacy data from TIM
      • topics : topics and partner interests
      • trends : Managing trends
      • uploads : Managing uploaded files
      • userstats: User statistics
      • vat : Adding VAT (Value-added tax) functionality
      • weasyprint: Printing documents using WeasyPrint
      • xl : General utilities for XL plugins
    • Application specs
    • Topic guides
    • Technical stuff
  • API
  • Changes
  • News
The Lino Book
  • Docs »
  • Specs »
  • humanlinks : managing family relationships
Next Previous

humanlinks : managing family relationships¶

The lino_xl.lib.humanlinks module adds functionality for managing human links (i.e. relationships).

  • Lars

Lars¶

Lars Braun is the natural son of Bruno Braun and Eveline Evrard. Here is what Lars would say about them:

>>> Person = rt.models.contacts.Person
>>> Link = rt.models.humanlinks.Link
>>> lars = Person.objects.get(first_name="Lars", last_name="Braun")
>>> for lnk in Link.objects.filter(child=lars):
...    print(u"{} is my {}".format(lnk.parent,
...         lnk.type.as_parent(lnk.parent)))
Mr Bruno Braun is my Father
Mrs Eveline Evrard is my Mother

Both parents married another partner. These new households automatically did not create automatic foster parent links between Lars and the new partners of his natural parents.

Next Previous

© Copyright 2002-2020 Rumma & Ko Ltd Last updated on Jan 15, 2021.

Built with Sphinx using a theme provided by Read the Docs. Source code. Online Link. Share on Facebook or Twitter.
© Copyright 2002-2020 Rumma & Ko Ltd. Last updated on Jan 15, 2021. Created using Sphinx 3.4.2. Show Source. Online Link.