8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00
re2o/cotisations/views_autocomplete.py

44 lines
1.4 KiB
Python
Raw Normal View History

2020-12-28 17:57:08 +00:00
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
#
# Copyright © 2017-2020 Gabriel Détraz
# Copyright © 2017-2020 Jean-Romain Garnier
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# App de gestion des users pour re2o
# Lara Kermarec, Gabriel Détraz, Lemesle Augustin
# Gplv2
"""
Django views autocomplete view
Here are defined the autocomplete class based view.
"""
from __future__ import unicode_literals
2021-02-10 10:06:09 +00:00
from django.db.models import CharField, Q, Value
2020-12-28 17:57:08 +00:00
2021-02-10 10:06:09 +00:00
from re2o.acl import can_view_all
from re2o.views import AutocompleteViewMixin
2020-12-28 17:57:08 +00:00
2021-02-10 10:06:09 +00:00
from .models import Banque
2020-12-28 17:57:08 +00:00
class BanqueAutocomplete(AutocompleteViewMixin):
obj_type = Banque