Bases: object
Adds schedule info to the mixed in class.
The schedule is the right mixin for entities which needs schedule information like start_date, due_date and duration
The date attributes can be managed with timezones. Follow the Python idioms shown in the documentation of datetime
Parameters: |
|
---|
Methods
__init__(2, **kwargs[, start_date, due_date]) |
Attributes
due_date | The date that the entity should be delivered. |
duration | Duration of the project. |
start_date | The date that this entity should start. |
The date that the entity should be delivered.
The due_date can be set to a datetime.timedelta and in this case it will be calculated as an offset from the start_date and converted to datetime.date again. Setting the start_date to a date passing the due_date will also set the due_date so the timedelta between them is preserved, default value is 10 days
The date that this entity should start.
Also effects the due_date in certain conditions, if the start_date is set to a time passing the due_date it will also offset the due_date to keep the time difference between the start_date and due_date. start_date should be an instance of datetime.date and the default value is datetime.date.today()