20130124

Validation errors during form2obj_and_save didn’t always lead in a visible user message. Fixed.

Invested another hour into documenting what Lino is and why I love it: https://www.lino-framework.org/about/index.html and https://www.lino-framework.org/topics/ui.html.

Checkin.

Worked on the documentation of https://www.lino-framework.org/topics/mti.html. lino.utils.mti and lino.test_apps.mti. tests.py is now in a separate file which does a literalinclude of models.py

Added an MTI example to https://www.lino-framework.org/tutorials/layouts.html.

Removed person_model and company_model attributes

These are no longer necessary.

AttributeError: ‘ChildCollector’ object has no attribute ‘add_batch’

This happens when running the lino.test_apps.mti suite using the newest Django development version. Yes, they changed code in django.db.models.deletion.Collector, and yes I am using undocumented features.

Hiding a field in all layouts

New method lino.core.model.Model.hide_element() and new decorator dd.when_prepared.

Together they allow us to have lino.projects.cosi hide the region field:

@dd.when_prepared('contacts.Partner')
def hide_region(model):
    model.hide_elements('region')

(lino.projects.cosi is for Belgians, and Belgians don’t use this field. But lino.modlib.contacts is not only for Belgians)