[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #43048] Assertion Error with datetime, it does not pos
From: |
oscar alvarez |
Subject: |
[Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module |
Date: |
Sun, 24 Aug 2014 15:26:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 |
Follow-up Comment #3, bug #43048 (project health):
The field activation_date, require date type in this model:
activation_date = fields.Date(
'Activation date', help='Date of activation of the party')
But with this simple test, you can see that fail, default method.
line 24 health.py file:
>>> from datetime import datetime, timedelta
line 300 health.py file:
>>> datetime.today()
datetime.datetime(2014, 8, 24, 10, 18, 28, 424916)
@staticmethod
def default_activation_date():
return datetime.today()
The problem is that datetime.today() return datetime not date as the field
expect.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43048>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, oscar alvarez, 2014/08/22
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, oscar alvarez, 2014/08/22
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, oscar alvarez, 2014/08/22
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, Luis Falcon, 2014/08/24
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module,
oscar alvarez <=
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, Luis Falcon, 2014/08/24
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, Luis Falcon, 2014/08/24
- [Health-dev] [bug #43048] Assertion Error with datetime, it does not possible install health module, Luis Falcon, 2014/08/24