I have 2 classes - skill and qualification: class Skill(models.Model): StageID = models.AutoField(primary_key=True) StageNumber = models.IntegerField(_('Stage Number'), max_length=5) StageDescription = models.CharField(_('Stage Description'),max_length=50)
class Qualification(models.Model): skillsID = models.AutoField(primary_key=True) EmployeeID = models.ForeignKey(Employee, verbose_name=_('Employee ID')) StageID = models.ForeignKey(Skill, verbose_name=_('Stage ID')) DateOfSkill = models.DateTimeField('Date Of Skill') class Meta: unique_together = ('EmployeeID', 'StageID') both are registered with admin panel: admin.site.register(Skill) admin.site.register(Qualification) The skills admin screen works great, I can add skill, delete skill and modify skill. But, when I try to see the Qualification admin panel I get this error message: Request Method: GET Request URL: http://localhost:8000/admin/proposal/qualification/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: coercing to Unicode: need string or buffer, Skill found What am I doing wrong? why is it not working? Template error: In template /usr/lib/python2.5/site-packages/django/contrib/admin/templates/admin/change_list.html, error at line 34 Caught an exception while rendering: coercing to Unicode: need string or buffer, Skill found 24 : {% if cl.has_filters %} 25 : <div id="changelist-filter"> 26 : <h2>{% trans 'Filter' %}</h2> 27 : {% for spec in cl.filter_specs %} 28 : {% admin_list_filter cl spec %} 29 : {% endfor %} 30 : </div> 31 : {% endif %} 32 : {% endblock %} 33 : 34 : {% block result_list %} {% result_list cl %} {% endblock %} 35 : {% block pagination %}{% pagination cl %}{% endblock %} 36 : </div> 37 : </div> 38 : {% endblock %} 39 : -- Nitzan Brumer Http://n2b.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---