mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +00:00
Started adding functionality for assets and cables forms to be dynamically swapped
This commit is contained in:
@@ -14,6 +14,11 @@ class AssetForm(forms.ModelForm):
|
||||
raise ValidationError("Cannot sell an item before it is acquired")
|
||||
return self.cleaned_data["date_sold"]
|
||||
|
||||
class CableForm(AssetForm):
|
||||
class Meta:
|
||||
model = models.Cable
|
||||
fields = '__all__'
|
||||
|
||||
class SupplierForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.Supplier
|
||||
|
||||
Reference in New Issue
Block a user