On Mon, May 11, 2009 at 3:16 AM, Kenneth Gonsalves
<law...@thenilgiris.com>wrote:

>
> hi,
>
> I know .90 is not supported, but if any old hand could help me out I will
> be
> grateful. I migrated an old .90 site to postgres8.3, python2.5. No
> problems,
> it worked. Only in one model I am unable to save or modify in admin. The
> model
> is:
>
> class Match(meta.Model):
>    name = meta.CharField('Tournament Name',maxlength=200)
>    club = meta.ForeignKey(Club)
>    year = meta.IntegerField('Year')
>    startdate = meta.DateField('Start Date',blank=True,null=True)
>    enddate = meta.DateField('End Date',blank=True,null=True)
>    practice = meta.DateField('Practice',blank=True,null=True)
>    contact = meta.TextField('Contact Person',blank=True,null=True)
>    priority = meta.IntegerField('Priority',default=2)
>    class META:
>        unique_together = (("name","year"),)
>        ordering = ['-priority','-startdate']
>        admin=meta.Admin()
>    def __repr__(self):
>        return "%d %s %s" %(self.year,self.name,self.get_club())
>
> and the error message is:
>
>
> ProgrammingError at /szdb/admin/matches/matchs/1/
> ERROR: operator does not exist: integer ~~* unknown LINE 1: ...OM
> "matches_matchs" WHERE "matches_matchs"."year" ILIKE '200... ^ HINT: No
> operator matches the given name and argument type(s). You might need to add
> explicit type casts.

[snip remainder]

This was a PostgreSQL change  with 8.3 that required modifying Django code
to account for the new behavior.  See:

http://code.djangoproject.com/ticket/6523

I think that was the main ticket that tracked it.  Perhaps you can figure
out how to apply a similar change to your .90 level (I assume updating the
app to a supported level is not an option at the moment at least).

Karen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to