class GroupPropertiesForm(forms.ModelForm):
  <strike>fields['equipment_grade']: forms.ChoiceField(
            choices=[(o.id, str(o))
                     for o in 
GroupProperties.objects.all(group=???group???)]</strike>
 class Meta:
    model = GroupProperties
    fields = ('group', 'bells')
    widgets = {
        'group': autocomplete.ModelSelect2(
            url='groups-autocomplete')
        )
    }

here i would like to capture group value from django auto complete light value 
and forward it to generate fields

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/062c882f-6cd3-4193-ad8f-c7eeff45d97e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to