On 2 Mar 2010, at 16:55 , Chris McComas wrote:
>
> One more question...I'm trying in my view to say if the deadline has
> passed to make that field as True, if not False
>
> I have this view: http://dpaste.com/166951/
>
> This is the error I get:
>
> http://dpaste.com/166952/
>
> On Mar 2, 10:
One more question...I'm trying in my view to say if the deadline has
passed to make that field as True, if not False
I have this view: http://dpaste.com/166951/
This is the error I get:
http://dpaste.com/166952/
On Mar 2, 10:12 am, Chris McComas wrote:
> Crap my bad, just under the gun to get
Crap my bad, just under the gun to get this done and I overlook easy
stuff. Sorry guys, thanks so much for your help!
On Mar 2, 10:11 am, raj wrote:
> Now that's a pure python typo. You must add(+) datetime.timedelta to
> read_receipt.
>
> On Mar 2, 8:01 pm, Chris McComas wrote:
>
>
>
> > I trie
Now that's a pure python typo. You must add(+) datetime.timedelta to
read_receipt.
On Mar 2, 8:01 pm, Chris McComas wrote:
> I tried this:
>
> new_admit.read_receipt.datetime.timedelta(days=7)
>
> and I got this error:
>
> http://dpaste.com/166919/
--
You received this message because you are s
timedelta is an object in the datetime module. Much like date is an object
in the datetime module. You would want to do something similar to this:
from datetime import date, timedelta
new_admit.tuition_deadline = new_admit.read_receipt + timedelta(days=7)
Matt
On Tue, Mar 2, 2010 at 10:01 AM, C
I tried this:
new_admit.read_receipt.datetime.timedelta(days=7)
and I got this error:
http://dpaste.com/166919/
On Mar 2, 9:51 am, Masklinn wrote:
> On 2 Mar 2010, at 15:45 , Chris McComas wrote:
>
>
>
> > These are my models:http://dpaste.com/166906/
>
> > I have a ModelForm setup, nothing sp
On 2 Mar 2010, at 15:45 , Chris McComas wrote:
>
> These are my models: http://dpaste.com/166906/
>
> I have a ModelForm setup, nothing special, just excluding a couple
> fields: application, tuition_deadline, and deadline_passed
>
> What I'm trying to do in my view is if a value is entered in
>
These are my models: http://dpaste.com/166906/
I have a ModelForm setup, nothing special, just excluding a couple
fields: application, tuition_deadline, and deadline_passed
What I'm trying to do in my view is if a value is entered in
read_receipt then it automatically sets tuition_deadline to be
8 matches
Mail list logo