Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
2009/9/1 Daniel Roseman > > On Sep 1, 12:17 pm, ANIL KARADAĞ wrote: > > 2009/9/1 Daniel Roseman > > > > > On Sep 1, 10:35 am, ANIL KARADAĞ wrote: > > > > hello everbody, > > > > > > i have en error for a week. i did not resolve and i

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
2009/9/1 Daniel Roseman > > On Sep 1, 10:35 am, ANIL KARADAĞ wrote: > > hello everbody, > > > > i have en error for a week. i did not resolve and i did not find it's > > solution. > > > > Sometimes system is sent an error: > > > > File

ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
hello everbody, i have en error for a week. i did not resolve and i did not find it's solution. Sometimes system is sent an error: File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py", line 353, in get_db_prep_value return int(value) ValueError: invalid literal for int

Re: Call a custom python function during each model save

2009-09-01 Thread ANIL KARADAĞ
you can override model save method: for example class Student(models.Model): name = models.CharField(blabla) def save(self, *force_insert=False*, *force_update=False*): # call spesific python method # operations super(Student, self).save(force_insert=force_insert,