Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date/time ranges (definable via .start_of()/.end_of()) cannot be linked to define more complex ranges #75

Open
amyodov opened this issue Mar 31, 2022 · 0 comments

Comments

@amyodov
Copy link

amyodov commented Mar 31, 2022

Describe the bug
It seems that you can define multiple ranges by their start-end. But you cannot define the linked ranges, or the range with multiple intermediate point.

Example which I tried to do (and failed):

start = forms.DateTimeField(
    initial=datetime(year=2022, month=1, day=1),
    widget=DateTimePickerInput().start_of('precalc'))
mid = forms.DateTimeField(
    initial=datetime(year=2022, month=1, day=15),
    widget=DateTimePickerInput().end_of('precalc').start_of('calc'))
end = forms.DateTimeField(
    initial=datetime(year=2022, month=1, day=30),
    widget=DateTimePickerInput().end_of('calc'))

The point is to have start <= mid <= end

[x] I have followed the configuration instructions and checked out the
common error troubleshooting page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant