mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
17 lines
320 B
Python
17 lines
320 B
Python
from django import forms
|
|
from django.core.exceptions import ValidationError
|
|
|
|
from assets import models
|
|
|
|
|
|
class AssetForm(forms.ModelForm):
|
|
class Meta:
|
|
model = models.Asset
|
|
fields = '__all__'
|
|
|
|
|
|
class SupplierForm(forms.Form):
|
|
class Meta:
|
|
model = models.Supplier
|
|
fields = '__all__'
|