Files
centurion_erp/app/itam/forms/software/update.py
2024-05-15 20:59:13 +09:30

24 lines
488 B
Python

from django import forms
from django.db.models import Q
from itam.models.software import Software
class Update(forms.ModelForm):
class Meta:
model = Software
fields = [
"name",
'slug',
'id',
'organization',
'is_global',
'category',
]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['is_global'].widget.attrs['disabled'] = True