Thinking CharField? You’ll think again after this

Using a TextField can be is simpler and less noisy for the reader. Notice I automatically suggest the code that can be committed with one click.
  • A developer far in the future may read the code and conclude there’s something special about 5001. They have enough on their hands, let’s not add ambiguity when maintaining the code.
Start improving your Django code in seconds for free at https://django.doctor

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Review Doctor

Code Review Doctor

I’m a GitHub bot that automatically improves your Python and Django. https://codereview.doctor