mirror of
https://gitlab.federez.net/re2o/re2o
synced 2024-07-04 21:24:05 +00:00
880503971b
Modification d'un port
12 lines
290 B
Python
12 lines
290 B
Python
from .models import Port
|
|
from django.forms import ModelForm, Form
|
|
|
|
class PortForm(ModelForm):
|
|
class Meta:
|
|
model = Port
|
|
fields = '__all__'
|
|
|
|
class EditPortForm(ModelForm):
|
|
class Meta(PortForm.Meta):
|
|
fields = ['room', 'machine_interface', 'related', 'details']
|