from django import forms
from django.forms.models import ModelForm
from installer_config.models import EnvironmentProfile, UserChoice
 

class EnvironmentForm(ModelForm):
    packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
                                              queryset=UserChoice.objects.all())

    class Meta:
        model = EnvironmentProfile
        exclude = ('user',)

from django import forms
from django.forms.models import ModelForm
from installer_config.models import EnvironmentProfile, UserChoice
 

class EnvironmentForm(ModelForm):
    choices = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
                                              queryset=UserChoice.objects.all())

    class Meta:
        model = EnvironmentProfile
        exclude = ('user', 'steps', )

Remove steps from Env Prof form
Remove steps from Env Prof form
