<s> from dal import autocomplete <EOL> from django import forms <EOL> from . models import TestModel <EOL> class TestForm ( forms . ModelForm ) : <EOL> class Meta : <EOL> model = TestModel <EOL> fields = ( '<STR_LIT:name>' , '<STR_LIT:test>' ) <EOL> widgets = { <EOL> '<STR_LIT:test>' : autocomplete . ModelSelect2 ( url = '<STR_LIT>' ) <EOL> } </s>
