I have a django model as below:
class Words(models.Model):
bare = models.CharField(max_length=100)
accented = models.CharField(max_length=100)
derived_from_word = models.ForeignKey('self', models.DO_NOTHING, blank=True, null=True, related_name='derived_words',
related_query_name='derived_word')
There is a field derived_from_word which shows that some of the words are derived from some other word. If it is not derived from any word so the field value is NULL.
What issue i am having that when i register this model in the django-admin and when i opened any of the word for editing, the derived_from_word field is listing all the words and i can not find a way for it to list only the derived word or the NULL value. Due to high load of the words the drop down list is making the page unresponsive.