Hello,

With regards to order_with_respect_to, what if the object I would like
to order is not a child of some parent object.  Say I have a blog app
and via the admin I can enter any amount of 'tags'.  On the front page
of the blog I may want to have those tags in a specific order.  Is this
possible.

Right now if I have a simple tag class like so:

class Tag(meta.Model):
    name = meta.CharField(maxlength=200)

    class META:
        admin = meta.Admin()
        order_with_respect_to = 'name'

    def __repr__(self):
        return self.name

The admin throws and error when trying to add a tag.  That error is:
ProgrammingError at /admin/blog/tags/add/
(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 `blog_tags` WHERE `name` = 'photos'))' at ")

Is the best solution here have the model keep track with it's own
'order' field, that the user manually fills in with an integer?

Thanks

Reply via email to