Title: Re: order_with_respect_to
sorry for didn´t making myself clear. "exactly the same error message" - that´s what i wanted to say.

nevertheless, i tried to use TEMPLATE_DEBUG=False and got the following error:

(1064, "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(*) FROM `skip_filmstarts_a` WHERE `film_id` = '778")

query is:

'INSERT INTO `skip_filmstarts_a` (`film_id`,`_order`) VALUES (%s,(SELECT COUNT(*) FROM `skip_filmstarts_a` WHERE `film_id` = %s))'

i change my model a bit (so here´s the new one):

class Filmstarts(meta.Model):
    film = meta.ForeignKey(Film, raw_id_admin=True)
    class META:
        order_with_respect_to = 'film'
        admin = meta.Admin(
            list_display = ('film'),
        )



On 2/24/06, patrick k <[EMAIL PROTECTED]> wrote:
did that. exactly the same error.


Enabling template debugging won't solve your problem, it will just help you pin point it. The errors should be the same, but the output should also include some template code, with a few line in red, post those lines, or attach your template.



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