#14094: Cannot define CharField with unlimited length
-------------------------------------+-------------------------------------
Reporter: millerdev | Owner: ar45
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by srkunze):
Recently, I helped a friend bootstrapping a new Django project.
This issue (TextField vs CharField without max_length) again popped up
because I had trouble explaining why exactly there needs to be a limit.
Because I have some reasonable experience with Django I know about the
internal relationship between models and forms which again lead to some
questionable design decisions in the past.
My point here is there is not easy way for (new) Django users to decide
for either a CharField or a TextField.
CharField -> one line text data but limited
TextField -> multi-line text data
What most projects actually need is
CharField -> one line, unlimited text data
--
Ticket URL: <https://code.djangoproject.com/ticket/14094#comment:21>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.351f8ab2f4a1e4975837b68b36bf6b9c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.