i´m trying to implement an up/down-list with dom-drag ... so, i think i´ll
ask my hosting company to upgrade mysql.

nesh & amit: thanks for your help.

patrick



> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> patrick k wrote:
>> i´m using 4.0.18 (well, my hosting company does).
>> 
>> besides that, i don´t really understand the query.
>> it is "SELECT COUNT(*) FROM `skip_filmstarts_a` WHERE `film_id` = '778".
>> the film_id i have entered is "7786".
> 
> Probably last *6* and *'* are truncated in the message. You can try to use
> sqlite as database if you have sqlite and
> pysqlite installed or simply drop order_with_respect_to from your model.
> 
> Also you can use something like this as a workaround (untested):
> 
> class Filmstarts(meta.Model):
>   film = meta.ForeignKey(Film, raw_id_admin=True)
>   emulate_owrt = meta.IntegerField(editable=False, blank=True, null=True,
> db_index=True)
> 
>   def _pre_save(self):
> self.emulate_owrt = self.get_count(film_id__exact=self.film_id)
> 
>   class META:
> ordering = ('emulate_owrt',)
>       admin = meta.Admin(
>           list_display = ('film'),
>       )
> 
> Of course, you will have to write get_next/previous functions if you want to
> use that functionality.
> 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to