Re: Which user posted the blog entry.

2005-12-12 Thread Steffen Glückselig
Brett Hoerner wrote: > Remember that the Admin screen is under your control. You could just > not display the User bit in the Admin, allow it to be posted as blank > (blank=True), and the use _pre_save to grab the current User (session?) > and set it. I am looking for such a solution. How cou

custom add-view for admin

2005-12-11 Thread Steffen Glückselig
I wanted to add the ID of the current user (request.user.id) into an object automatically. So I was looking for a way to change the behavior of the default admin-interface for that object. My solution now is to extend the add-view of that object. I changed the urlpatterns to include (r'^admin/web

Re: Using umlauts

2005-11-18 Thread Steffen Glückselig
Right, I changed the slugfield into a charfield. I cannot add a user with an username that contains an umlaut with the default admin-interface, though. How could I change that? best regards

Using umlauts

2005-11-17 Thread Steffen Glückselig
Using an umlaut in a form-field of the admin-interface causes the validator to complain about 'only letters, numbers and underscores' being allowed. Is there a way to enable umlauts in form-fields? best regards

Assign current user automatically to object

2005-11-14 Thread Steffen Glückselig
Hello, I am looking for a way to assign the current user automatically to an object. That object has a foreign key referencing auth.User. My searches turned up some descriptions of that 'problem' but no solution. Would anyone give me a hint on how to achieve that behavior? best regards Steffen