Hi,
I've a model which I want to implement as a linked-list.

The model has a pointer to itself:
prev = models.ForeignKey('self', blank=True, null=True)

Now, my question is about the GUI.
I want to use the Admin GUI with a small modification: when a user
edits an existing instance of the model and saves it, I would like to
generate a new instance and link it to the previous one.

The "Save as new" button seems to be the closest to my needs but how
can I set the prev pointer?

Any ideas anyone?

Reuven.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to