Skip to content

Commit

Permalink
Update forms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ixnur authored Aug 26, 2023
1 parent f36891b commit 5cb2c5a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions envanter/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from django import forms
from .models import Component, Subcategory, Category, Register


from .models import Component, Subcategory, Category,

class SubcategoryForm(forms.ModelForm):
class Meta:
Expand All @@ -13,8 +11,7 @@ class Meta:
model = Component
fields = ['category', 'model', 'manufacturer', 'stock', 'ohm', 'w', 'technical_specifications', 'picture_url', 'document_url']


class RegisterForm(forms.ModelForm):
class CategoryForm(forms.ModelForm):
class Meta:
model = Register
fields = ['name', 'surname', 'email', 'phone', 'password']
model = Category
fields = ['name', 'description']

0 comments on commit 5cb2c5a

Please sign in to comment.