Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:36:50 +, Patrick Anderson wrote: > On Sat, 11 Aug 2007 14:34:05 +0000, Patrick Anderson wrote: > >> On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> >> > --- >&g

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:34:05 +, Patrick Anderson wrote: > On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: > >>> --- >>> >>> If I have 8 people, how should bind POST data to a form objec

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> --- >> >> If I have 8 people, how should bind POST data to a form object in the >> view? > > You can use the 'prefix' option when instantiating the forms. Prefix > the form w

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
On Fri, 10 Aug 2007 13:32:32 -0700, Collin Grady wrote: > One method is to include a hidden input somewhere that indicates the > number of forms present. Then you can just use a for loop from 1 to that > number in the view to build the right number of forms again. > > > This is the raw html fo

newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
This is a simplified PersonForm I've created with newforms library: class PersonForm(forms.Form): name = forms.CharField() first_name = forms.CharField() middle_name = forms.CharField(required = False) last_name = forms.CharField() The problem I have is that I need to update

Re: User model (unique email)

2007-07-31 Thread Patrick Anderson
On Tue, 31 Jul 2007 22:40:50 +, Pensee wrote: > Hi, > > On Jul 31, 11:46 pm, Patrick Anderson <[EMAIL PROTECTED]> wrote: >> I'd prefer not to hack the contrib.auth application and change User >> model, > > Adding just unique=true is not so

User model (unique email)

2007-07-31 Thread Patrick Anderson
I'd like to create a couple of views that would allow users to retrieve their forgotten username or password by email. It seems to me that the only reliable way to do this would be for my application to require unique email addresses for User objects. However email field in django.contrib.auth

HttpResponse error with file downloads

2007-07-27 Thread Patrick Anderson
Recently I've encountered the following error: -- Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, si

Re: password reset for all cached users?

2007-07-25 Thread Patrick Anderson
On Wed, 25 Jul 2007 18:39:03 -0500, James Bennett wrote: > On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote: >> Anyway, why not reset password for a logged-in user only? Maybe I've >> look at the code too briefly, and there might be a reason for iterating >&g

Re: password reset for all cached users?

2007-07-25 Thread Patrick Anderson
On Wed, 25 Jul 2007 22:47:05 +, Patrick Anderson wrote: > Today when trying to add 'reset password' feature into my project, I > noticed that the PasswordResetForm() 'save' method resets passwords for > all cached users. > > I have been testing the sit

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Patrick Anderson
On Thu, 26 Jul 2007 00:11:59 +0200, Kai Kuehne wrote: > Unfortunately I cannot keep the relation between Entry and Image because > I get an weird error (see #4633) if the m2m field is None. > > So.. is there another way to just show a list of models on an edit page > of another model without hav

password reset for all cached users?

2007-07-25 Thread Patrick Anderson
Today when trying to add 'reset password' feature into my project, I noticed that the PasswordResetForm() 'save' method resets passwords for all cached users. I have been testing the site with various users logged in, and when I tried to reset my password from within my public site, I received

Edit inline problems

2007-06-27 Thread Patrick Anderson
Hi! It's been a while since I posted to this list, but I have a little problem and would like to ask for some help. I have the following 2 models: class Personnel(models.Model): report = models.ForeignKey(Report, unique = True) class Admin: pass def __st

Empty QuerySet while using dates() method. Is it a bug?

2007-05-03 Thread Patrick Anderson
g report, I'd like to ask if anyone has been faced with this issue. Patrick Anderson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

How would Django handle a large number of records

2006-06-21 Thread Patrick Anderson
Hi! I'm impressed with Django and all the fuss that it removed from my development. Our organisation is considering moving our document management from an old Access db to PostgreSQL and I thought of using django as an admin interface, plus public interface (sometime down the line.) We have abou