Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-23 Thread [EMAIL PROTECTED]
So Django keeps a connection open from view-to-view? If so, db level locking should work, but I thought a transaction was started on going into a view, and commited/rolled-back on exit. If the later, then I don't think James' idea will work. Am I missing something? Thanks, Julian On Jun 22, 8:

Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread James Bennett
On 6/22/07, ToddG <[EMAIL PROTECTED]> wrote: > Rails has an implementation you could look at for an example, likely > simpler to read than something like Hibernate... not sure how/if > anything could be hooked/monkey'd into the django-admin though. This is best handled by your database (assuming

Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread ToddG
One approach: optimistic locking. http://en.wikipedia.org/wiki/Optimistic_concurrency_control Rails has an implementation you could look at for an example, likely simpler to read than something like Hibernate... not sure how/if anything could be hooked/monkey'd into the django-admin though. --

Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread [EMAIL PROTECTED]
Hi Tim- I like your second suggestion: > Another alternative might be to make your own admin-ish interface > and, by tracking a "last updated on " and "last > updated by "" field, for which when Joe requested this > custom admin page, it would stash those values as hidden fields. > If, when the

Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread Tim Chase
> In playing with the admin, I've found I can log in as two users via > two different browsers and edit the same object- no warning is given > that the object is being edited elsewhere, and of course the last to > save-'wins.' Given the stateless nature of RESTful web applications, the only gospe

admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread [EMAIL PROTECTED]
Hi- In playing with the admin, I've found I can log in as two users via two different browsers and edit the same object- no warning is given that the object is being edited elsewhere, and of course the last to save-'wins.' For what we need, I think I can include all the interesting fields in the

Re: admin suggestions

2005-11-23 Thread oggie rob
Oops! I guess I hadn't tried it as much as I thought! Unfortunately #2 there causes a problem when they aren't overridden (a TypeError if '%s' is not included in the post_url). I guess a possible fix is to do a find, e.g.: if post_url.find('%s') >= 0: post_url = post_url % pk_value return HttpR

admin suggestions

2005-11-21 Thread oggie rob
Hi all, I'm very impressed with 0.90. Works great! >From the last two weeks (during which I managed to port my access database, complete with interface - yeah!), I have 3 suggestions wrt the admin interface: 1) It wasn't obvious how to use the search_fields option with ForeignKeys. I figured it ou