Varianta finala, inainte de publicare
This commit is contained in:
+3
-3
@@ -60,7 +60,7 @@ class ComputerForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.instance and self.instance.pk:
|
||||
self.fields["assigned_to"].disabled = True
|
||||
# self.fields["assigned_to"].disabled = True
|
||||
self.fields["assigned_to"].help_text = (
|
||||
"Transferul se face doar generând un Proces Verbal nou."
|
||||
)
|
||||
@@ -99,7 +99,7 @@ class MonitorForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.instance and self.instance.pk:
|
||||
self.fields["assigned_to"].disabled = True
|
||||
# self.fields["assigned_to"].disabled = True
|
||||
self.fields["assigned_to"].help_text = (
|
||||
"Transferul se face doar generând un Proces Verbal nou."
|
||||
)
|
||||
@@ -138,7 +138,7 @@ class PeripheralForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.instance and self.instance.pk:
|
||||
self.fields["assigned_to"].disabled = True
|
||||
# self.fields["assigned_to"].disabled = True
|
||||
self.fields["assigned_to"].help_text = (
|
||||
"Transferul se face doar generând un Proces Verbal nou."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user