Compare commits
2 Commits
fix-splitd
...
2760068cde
Author | SHA1 | Date | |
---|---|---|---|
2760068cde
|
|||
cef797c333 |
@ -1,5 +1,8 @@
|
|||||||
src/web/static/*
|
.git
|
||||||
.venv
|
|
||||||
.githooks
|
.githooks
|
||||||
|
.mypy_cache
|
||||||
|
.pytest_cache
|
||||||
|
.venv
|
||||||
.vscode
|
.vscode
|
||||||
node_modules
|
node_modules
|
||||||
|
src/web/static/*
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
* New
|
* New
|
||||||
* When adding session, pre-select game with the last session
|
* When adding session, pre-select game with the last session
|
||||||
* Date and time input fields now have proper pickers
|
|
||||||
|
|
||||||
## 0.2.4 / 2023-01-16 19:39+01:00
|
## 0.2.4 / 2023-01-16 19:39+01:00
|
||||||
|
|
||||||
|
@ -13,26 +13,12 @@ class SessionForm(forms.ModelForm):
|
|||||||
"duration_manual",
|
"duration_manual",
|
||||||
"note",
|
"note",
|
||||||
]
|
]
|
||||||
custom_datetime_widget = forms.SplitDateTimeWidget(
|
|
||||||
date_attrs={"type": "date"}, time_attrs={"type": "time"}
|
|
||||||
)
|
|
||||||
widgets = {
|
|
||||||
"timestamp_start": custom_datetime_widget,
|
|
||||||
"timestamp_end": custom_datetime_widget,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class PurchaseForm(forms.ModelForm):
|
class PurchaseForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Purchase
|
model = Purchase
|
||||||
fields = ["game", "platform", "date_purchased", "date_refunded"]
|
fields = ["game", "platform", "date_purchased", "date_refunded"]
|
||||||
custom_date_widget = forms.DateInput(
|
|
||||||
format=("%d-%m-%Y"), attrs={"type": "date"}
|
|
||||||
)
|
|
||||||
widgets = {
|
|
||||||
"date_purchased": custom_date_widget,
|
|
||||||
"date_refunded": custom_date_widget,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class GameForm(forms.ModelForm):
|
class GameForm(forms.ModelForm):
|
||||||
|
Reference in New Issue
Block a user