Commit 0229b486 authored by Luc Saffre's avatar Luc Saffre
Browse files
parent 19c0e9e0
......@@ -279,7 +279,10 @@ def inject_partner_field(sender=None, **kwargs):
if not issubclass(User, Partner):
dd.inject_field(User, 'partner', dd.ForeignKey(
'contacts.Partner', blank=True, null=True,
related_name='users_by_partner',
on_delete=models.PROTECT))
# a related_name is needed so that Avanti can have aClient
# who inherits from both Partner and UserAuthored
return
dd.inject_field(User, 'partner', dd.DummyField())
......
# -*- coding: UTF-8 -*-
# Copyright 2009-2016 by Luc Saffre.
# Copyright 2009-2017 by Luc Saffre.
# License: BSD, see LICENSE for more details.
"""Date formatting functions
......@@ -169,6 +169,7 @@ dtomy = fdmy # backward compat
def day_and_month(d):
# this is not used. see also lino_xl.lib.cal.utils.day_and_month
return format_date(d, "dd. MMMM")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment