Hi... My yaml file is - fields: {time: '0:00'} model: utils.Hour pk: 01 - fields: {time: '0:30'} model: utils.Hour pk: 02 - fields: {time: '1:00'} model: utils.Hour pk: 03
The model for this is from django.db import models class Hour(models.Model): time=models.TimeField(max_length=10) class Admin: pass def __str__(self): return "%s" % self.time from the site admin, when trying to access Hours, this gives me an error ValueError at /admin/utils/hour/ need more than 2 values to unpack Request Method: GET Request URL: http://localhost:8000/admin/utils/hour/ Exception Type: ValueError Exception Value: need more than 2 values to unpack Exception Location: D:\Python25\Lib\site-packages\django\db\backends \util.py in typecast_time, line 63 Python Executable: D:\Python25\python.exe Python Version: 2.5.1 Can someone please help? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---