python - Hiding the time in a datetime model field in Django? -
I am using Thuuber, but I am running in a problem: I can not understand how the part of time Removal is Dat Time Field
My Form Class and Lame Exclusion effort looks like this:
Class Laundry DeliveryForm (Event Form): Start = Form. DateTimeField (widget = form.plitditviewjet) End = forms.DateTimeField (widget = forms.SplitDateTimeWidget, help_text = ("The end time should be after the start time.")) Square meta: Model = Laundry Delivery boycott = EventForm.Meta. Exclude + ('active', 'Startup Ideally, I just want to store the day, or store the start up. As time goes by some arbitrary time at 8 o'clock, but keep the active field out of happiness Goes, time fee The tree is open. Tried trying sifting through the document, but I could not track down what I needed.
You can use, date input widget
a widget for an existing form, or forms.DateField ()
, in which the default DateInput
widget.
Comments
Post a Comment