Hi all, I'm relatively new to DJango (I've been using it for about three months) and so far I'm loving it - makes a really nice change from PHP... ;)
I've run into an issue which my Google foo skills just can't find an answer to - how to I edit the Admin models and the way that they are saved? I have two models, the first is a 'change request ticket' and the second reflects the status of that ticket. They are linked by a ForeignKeyField on the first table. The two problems that I have are: 1) Some of the 'states' should mark the ticket as closed, so when the ticket is saved with the state of 'closed', it should be marked as 'completed' with the date and time the action was carried out. 2) Each ticket is created by a user, each additional piece of information is created by a user. Both sections should take this information from the current session, not a drop down list, otherwise I cannot guarantee that the reporting engine I am also writing will return accurate data about who opened/edited/closed each ticket. I don't particularly want to write my own forms for this, but it's not something that I can find a way of doing. I'm sure I'm not the first to do this, however if I do get a solution through this group, I promise to put up a blog post about it! :) To answer a few questions I'm sure some of you will have: Q) Why DJango 1.1, why not upgrade? A) Because 1.1 is what ships with CentOS and that's what we use at work. Company policy is not to install from "source". Q) Where is the code? A) The code is part of the Edison project and the exact model can be found at https://github.com/proffalken/edison/blob/master/changemanagement/models.py Kind regards, Matt -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

