mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
38 lines
691 B
Python
38 lines
691 B
Python
"""
|
|
Django forms for interacting with common objects
|
|
"""
|
|
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from InvenTree.forms import HelperForm
|
|
|
|
from .models import Currency, InvenTreeSetting
|
|
|
|
|
|
class CurrencyEditForm(HelperForm):
|
|
""" Form for creating / editing a currency object """
|
|
|
|
class Meta:
|
|
model = Currency
|
|
fields = [
|
|
'symbol',
|
|
'suffix',
|
|
'description',
|
|
'value',
|
|
'base'
|
|
]
|
|
|
|
|
|
class SettingEditForm(HelperForm):
|
|
"""
|
|
Form for creating / editing a settings object
|
|
"""
|
|
|
|
class Meta:
|
|
model = InvenTreeSetting
|
|
|
|
fields = [
|
|
'value'
|
|
]
|