fieldName = models.TimeField(auto_now=False, auto_now_add=False)

      Python language logo
      your recipe card header background
      Django Time Field

      Django Public Recipes

      This code creates a new field called "TimeField" which is a timed field. The "auto_now" argument setting it to "False" means the field will not auto-update the time when the model is saved. The "auto_now_add" argument setting it to "False" means the field will not automatically add a new time entry when the record is added.

      Shortcut: django.field.time

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.