Cool. And I sort of have it working.
class Pizza:
name = meta.CharField(maxlength=100)
class Topping:
name = meta.CharField(maxlength=100)
pizza = meta.ForeignKey(Pizza, edit_inline=meta.TABULAR)
class META:
admin = meta.Admin()
order_with_respect_to = 'pizza'
On the pizza admin page I have an inline list of pizza toppings. I get
an Ordering section with a non-editable ordering text box. I also see
some nifty looking boxes on the right-hand side that change color when
I hover over. Unfortunately I can't seem to get anything to reorder
(thought maybe I could drag and drop).
Also trying to go to the toppings list page in the admin I get the
following error:
There's been an error:
Traceback (most recent call last):
File "D:\django-trunk\django\core\handlers\base.py", line 64, in
get_response
response = callback(request, **param_dict)
File "D:\django-trunk\django\views\admin\main.py", line 132, in
change_list
if isinstance(lookup_opts.get_field(order_field).rel,
meta.ManyToOne):
File "D:\django-trunk\django\core\meta\__init__.py", line 252, in
get_field
raise FieldDoesNotExist, "name=%s" % name
FieldDoesNotExist: name=_order