abra at Thu Dec 27 13:44:21 +04 2018
This commit is contained in:
14
web/forms.py
Normal file
14
web/forms.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import bootstrap_datepicker_plus
|
||||
from django import forms
|
||||
|
||||
from web.models import ActivityLog
|
||||
|
||||
|
||||
class ActivityLogCreateForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = ActivityLog
|
||||
fields = ['user', 'activity', 'start_time', 'end_time']
|
||||
widgets = {
|
||||
'start_time': bootstrap_datepicker_plus.DateTimePickerInput(format='%Y-%m-%d %H:%M'),
|
||||
'end_time': bootstrap_datepicker_plus.DateTimePickerInput(format='%Y-%m-%d %H:%M'),
|
||||
}
|
Reference in New Issue
Block a user