Re: Error adding DateField - 'unicode' object has no attribute 'strftime'

2007-09-05 Thread Michael Radziej
Hi Greg, On Wed, Sep 05, Greg wrote: > > Michael, > I'm using sqlite. Thanks for the clarification. I've almost no experience with sqlite, sorry. Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The

Re: Error adding DateField - 'unicode' object has no attribute 'strftime'

2007-09-05 Thread Greg
Michael, I'm using sqlite. Lapin, Where in my code do you want me to use smart_str? Thanks On Aug 29, 3:58 am, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Tue, Aug 28, Greg wrote: > > > Hello, > > I have the following code in my models.py file > > > class Orders(models.Model): > > times

Re: Error adding DateField - 'unicode' object has no attribute 'strftime'

2007-08-29 Thread Michael Radziej
On Tue, Aug 28, Greg wrote: > > Hello, > I have the following code in my models.py file > > class Orders(models.Model): > timestamp = models.DateField() > ... etc > > / > > I have the following in my view.py function > > from datetime import datetime > o = Orders() > o.ti

Re: Error adding DateField - 'unicode' object has no attribute 'strftime'

2007-08-28 Thread Iapain
try converting it into string with smart_str --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, s

Error adding DateField - 'unicode' object has no attribute 'strftime'

2007-08-28 Thread Greg
Hello, I have the following code in my models.py file class Orders(models.Model): timestamp = models.DateField() ... etc / I have the following in my view.py function from datetime import datetime o = Orders() o.timestamp = datetime.now() ... etc o.save() How