📜  django datepicker - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:24.288000             🧑  作者: Mango

代码示例4
from .models import Hello
from django import forms
from bootstrap_datepicker_plus import DatePickerInput

class CreateForm(forms.ModelForm):
    class Meta:
        model = Hello
        fields =[            
            "Date",
        ]

    widgets = {
        'Date': DatePickerInput(),
    }