feat(itam): migrate app from own repo

!1
This commit is contained in:
2024-05-15 20:55:30 +09:30
parent f98e3bc9c2
commit 195bb5e4ab
33 changed files with 1303 additions and 1 deletions

View File

View File

@ -0,0 +1,23 @@
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