DateFormat in Django and Appengine

2009-09-27 Thread Peter Newman
Guys - I have a slight issue with dates in Django and appengine: I have the following class because i want date input in the form of DD/ MM/YY class MyForm(ModelForm): mydate = forms.DateTimeField(input_formats=['%d-%m-%y', '%d/%m/ %y']) class Meta: model = MyObject This

Re: filter on entries from a certain user

2009-09-14 Thread Peter Newman
gt; attempt to fiddle with this and then the model is allowed to do it's > magic. > Something like this: > > class ContactForm(forms.ModelForm): >     class Meta: >         model = Contact >         exclude = ('owner',) > > On Sep 13, 9:06 am, Peter Newman <peter.newman@goo

filter on entries from a certain user

2009-09-13 Thread Peter Newman
Guys - I have class Contact(db.Model): person = db.ReferenceProperty(Person) contact_date = db.DateTimeProperty(auto_now_add=True) remarks = db.TextProperty() owner = db.UserProperty(auto_current_user_add=True) and a simple form class ContactForm(forms.ModelForm): class