I am using the django-countries module to create a country selector in Django, but the flag appears underneath the selection field instead of in it. Flag icon appears underneath selection field
This is the code of forms.py:
class TweetForm(forms.ModelForm):
class Meta:
model = TweetSearch
fields = ['search_term', 'query_type', 'start_date', 'end_date', 'language', 'country', 'tweet_count']
widgets = {'country': CountrySelectWidget(attrs={'class': 'form-control'}),
}
How do I change the flag position to inside the selection field?