[Answered ]-Problem with select and related model

1👍

Define a __unicode__ methods for your models:

class IdfPracownicy(models.Model):
       nazwa = models.CharField(max_length=100)

       def __unicode__(self):
            return self.nazwa

1👍

Implement a __unicode__ method on your IdfPracaOpinie model, like this:

class IdfPracaOpinie(models.Model):
   nazwa = models.CharField(max_length=30)

   def __unicode__(self):
      return self.nazwa

Leave a comment