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

- --
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/
http://djnesh.blogspot.com/  |  http://djnesh-django.blogspot.com/ |  
http://djangoutils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/2OMt2W58T89D+0RAr+nAJ9HkPZXd4vJYzRYNr6IX5eqZ/4nAgCdFlFO
3fk3e3wwNRXqhiYsS9ywmOU=
=Lgv+
-----END PGP SIGNATURE-----

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