1👍
✅
The answer is to implement the method natural_key(self)
in HadoopDistributor
So
def natural_key(self):
return self.name
On a side note for __unicode__
and __str__
you should really implement:
def __unicode__(self):
return self.name
def __str__(self):
return unicode(self).encode('utf-8')
Source:stackexchange.com