Add autocomplete vendor field renderer.
This commit is contained in:
parent
b78b49d79e
commit
0a223ac4f9
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2015 Lance Edgar
|
# Copyright © 2010-2016 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -24,6 +24,8 @@
|
||||||
FormAlchemy Field Renderers
|
FormAlchemy Field Renderers
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import unicode_literals, absolute_import
|
||||||
|
|
||||||
from .core import CustomFieldRenderer, DateFieldRenderer
|
from .core import CustomFieldRenderer, DateFieldRenderer
|
||||||
|
|
||||||
from .common import (AutocompleteFieldRenderer,
|
from .common import (AutocompleteFieldRenderer,
|
||||||
|
@ -43,3 +45,5 @@ from .products import (ProductFieldRenderer, GPCFieldRenderer,
|
||||||
PriceFieldRenderer, PriceWithExpirationFieldRenderer)
|
PriceFieldRenderer, PriceWithExpirationFieldRenderer)
|
||||||
|
|
||||||
from .stores import StoreFieldRenderer
|
from .stores import StoreFieldRenderer
|
||||||
|
|
||||||
|
from .vendors import VendorFieldRenderer
|
||||||
|
|
36
tailbone/forms/renderers/vendors.py
Normal file
36
tailbone/forms/renderers/vendors.py
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# Rattail -- Retail Software Framework
|
||||||
|
# Copyright © 2010-2016 Lance Edgar
|
||||||
|
#
|
||||||
|
# This file is part of Rattail.
|
||||||
|
#
|
||||||
|
# Rattail is free software: you can redistribute it and/or modify it under the
|
||||||
|
# terms of the GNU Affero General Public License as published by the Free
|
||||||
|
# Software Foundation, either version 3 of the License, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# Rattail 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 Affero General Public License for
|
||||||
|
# more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with Rattail. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
"""
|
||||||
|
Vendor Field Renderers
|
||||||
|
"""
|
||||||
|
|
||||||
|
from __future__ import unicode_literals, absolute_import
|
||||||
|
|
||||||
|
from .common import AutocompleteFieldRenderer
|
||||||
|
|
||||||
|
|
||||||
|
class VendorFieldRenderer(AutocompleteFieldRenderer):
|
||||||
|
"""
|
||||||
|
Renderer for :class:`rattail.db.model.Vendor` instance fields.
|
||||||
|
"""
|
||||||
|
service_route = 'vendors.autocomplete'
|
Loading…
Reference in a new issue