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
- [Answered ]-Should I render ajax responses on server side?
- [Answered ]-Django – query for the closest numeric value to a given value
- [Answered ]-Lambda – 'QuerySet' object has no attribute 'xxx'
- [Answered ]-Django Celery set individual logfile path for each task
Source:stackexchange.com