def __init__(self, *args, **kwargs):
    super(CompanyForm, self).__init__(*args, **kwargs)
if self.instance:
    self.fields['theme'].queryset = Theme.objects.filter(name__iexact='company'
        )
filter foreignkey field in django admin