Django Model Char Field

    0

    7

    Django Public Recipes

    In this code, "fieldName" is a name for a new CharField. The CharField has a maximum length of 150 characters.

    Library: django

    Shortcut: django.field.char

    fieldName = models.CharField(max_length = 150)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.