def __init__(self, *args, **kwargs):
    super(ExampleForm, self).__init__(*args, **kwargs)
self.fields['only_unique_values'].choices = ReadOnlyTable.objects.values_list(
    'pie', 'pie').distinct()
django modelchoicefield with distinct column values