From d8f4c0abf3fe2bf999e62055082273f493a3a7c1 Mon Sep 17 00:00:00 2001 From: Luc Saffre Date: Fri, 15 Mar 2019 12:26:34 +0200 Subject: [PATCH] http://luc.lino-framework.org/blog/2019/0315.html --- lino_patrols/patrols/models.py | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/lino_patrols/patrols/models.py b/lino_patrols/patrols/models.py index a5e540f..c8d8059 100644 --- a/lino_patrols/patrols/models.py +++ b/lino_patrols/patrols/models.py @@ -1,26 +1,11 @@ # -*- coding: UTF-8 -*- -## Copyright 2013 Luc Saffre -## This file is part of the Lino project. -## Lino is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. -## Lino is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## You should have received a copy of the GNU General Public License -## along with Lino; if not, see . +# Copyright 2013-2019 Rumma & Ko Ltd +# License: BSD (see file COPYING for details) -""" -The :xfile:`models` module for :mod:`lino_faggio`. - -""" from __future__ import unicode_literals -import logging -logger = logging.getLogger(__name__) +import logging ; logger = logging.getLogger(__name__) import os import datetime @@ -28,12 +13,7 @@ from django.db import models from django.conf import settings from django.core.exceptions import ValidationError -from django.core.exceptions import MultipleObjectsReturned -from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ -from django.utils.translation import string_concat -from django.utils.encoding import force_text -from django.utils.functional import lazy from lino.api import dd from lino import mixins