Django 5.1.2 Documentationdb import models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType like de-ch or en-us). • If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the lan- guage names as translation strings –but use gettext_lazy() instead of gettext() default this is 'django/forms/ errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 2923 页 | 9.62 MB | 1 年前3
Django 5.1 Documentationimport models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType sublanguage, like de-ch or en-us). If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the language names as translation strings – but use gettext_lazy() instead of gettext() default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1 Documentationdb import models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType like de-ch or en-us). • If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the lan- guage names as translation strings –but use gettext_lazy() instead of gettext() default this is 'django/forms/ errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 2917 页 | 9.59 MB | 1 年前3
Django 5.1.2 Documentationimport models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType sublanguage, like de-ch or en-us). If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the language names as translation strings – but use gettext_lazy() instead of gettext() default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 5.0.x Documentationdb import models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType like de-ch or en-us). • If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the lan- guage names as translation strings –but use gettext_lazy() instead of gettext() default this is 'django/forms/ errors/list/text.html'. This template renders the errors as a list of bullet points. 1478 Chapter 6. API Reference Django Documentation, Release 5.0.2.dev20240126115907 template_name_ul0 码力 | 2878 页 | 9.60 MB | 1 年前3
Django 5.0.x Documentationimport models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType sublanguage, like de-ch or en-us). If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the language names as translation strings – but use gettext_lazy() instead of gettext() default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 3407 页 | 3.21 MB | 1 年前3
Django 4.2.x Documentationimport models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType sublanguage, like de-ch or en-us). If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the language names as translation strings – but use gettext_lazy() instead of gettext() default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationimport models class Runner(models.Model): MedalType = models.TextChoices('MedalType', 'GOLD SILVER BRONZE') name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType sublanguage, like de-ch or en-us). If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the language names as translation strings – but use gettext_lazy() instead of gettext() default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.1.x Documentationdb import models class Runner(models.Model): MedalType = models.TextChoices('MedalType', 'GOLD SILVER BRONZE') name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType like de-ch or en-us). • If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the lan- guage names as translation strings –but use gettext_lazy() instead of gettext() default this is 'django/forms/ errors/list/text.html'. This template renders the errors as a list of bullet points. 1440 Chapter 6. API Reference Django Documentation, Release 4.1.11.dev20230703083112 template_name_ul0 码力 | 2777 页 | 9.32 MB | 1 年前3
Django 4.2.x Documentationdb import models class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) medal = models.CharField(blank=True, choices=MedalType like de-ch or en-us). • If you define a custom LANGUAGES setting, as explained in the previous bullet, you can mark the lan- guage names as translation strings –but use gettext_lazy() instead of gettext() default this is 'django/forms/ errors/list/text.html'. This template renders the errors as a list of bullet points. template_name_ul The name of the template used when calling as_ul(). By default this is0 码力 | 2842 页 | 9.47 MB | 1 年前3
共 39 条
- 1
- 2
- 3
- 4













