Sorry, I didn't see that you already wrote that.
אורי
u...@speedy.net

On Mon, Jan 6, 2020 at 6:43 AM Abu Yusuf <yu...@binate-solutions.com> wrote:

>
> No, there is no limit for textfield. But you can do the hack using this:
>
> from django.core.validators import MaxLengthValidator
> class Comment(models.Model):
>     comment = models.TextField(validators=[MaxLengthValidator(200)])
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACNsr29nJmR4ZeOpVGnTA75HZuBgF92j25Q7NPzGFyyHq6qyUg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACNsr29nJmR4ZeOpVGnTA75HZuBgF92j25Q7NPzGFyyHq6qyUg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABD5YeEav3AazpXFmgNrPgj1bZw3UB6%2B1mEjx4VHu5GyOk1SZg%40mail.gmail.com.

Reply via email to