How to catch django auto complete lights value and render future fields?

39 views
Skip to first unread message

Patlola Praveen

unread,
Sep 21, 2016, 12:43:06 PM9/21/16
to Django developers (Contributions to Django itself)
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

Tim Graham

unread,
Sep 21, 2016, 2:12:12 PM9/21/16
to Django developers (Contributions to Django itself)
This list is for discussing the development of Django itself, please ask usage questions on django-users.
Reply all
Reply to author
Forward
0 new messages