-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Change attribute (column) from "text" to "body" #1642
Comments
Hmm ... "body" on the other hand could be confused with the "blog post" (rendered as |
True enough. It still felt less generic / more semantic than "text".
Well, I'm "as dumb as a post", 😉 but I like it. |
How about |
|
I like |
Eek, good point!
None of these seem convincing to me. Remember that our base template <body>
<div class="page-header">
<h1><a href="/">Django Girls Blog</a></h1>
</div>
<div class="content container">
<div class="row">
<div class="col-md-8">
{% block content %}
{% endblock %}
</div>
</div>
</div>
</body> is used for both, the |
OK... going back to my original thought... instead of an attribute / column named Given Django's history in the news business, a newspaper entry is often defined as a story and it would seem to be a word that doesn't conflict with anything else... Meanwhile, Though I usually think of a Also, semantically good but "typographically" bad |
I've filed a separate issue (#1648) about "post" / "blog post", as that seems independent of the name of the model field currently named "text". |
"contents" seems to be a valid English word, so why not? Granted, it's a bit subtle, but still better than keeping these names exactly the same or than choosing a word that doesn't really match the intended meaning. |
@das-g I bow to the community on that. 😉 It seemed good enough to include as a possibility, but I did want to make the caveat that the subtle difference between content and contents might be something to warn people to be aware of. Easy to gloss over in documentation that and trip people up. (Without sufficient caffeine, it would trip me up. And there might not be sufficient caffeine to prevent it.) |
In
blog/model.py
it seems there would be a better name thantext
for the body of the blog post, just because "text" is so often considered to be a type in so many languages. The fact that the Django designation of the field type isTextField
lends support to that contention.(In addition, perhaps a better word than "Post" when one uses "post" and "get" as part of http.)
In English, at least, it would seem
body
andentry
or evenblog_text
andblog_post
might help disambiguate. (There are probably several other good choices there. body and entry were just the first two synonyms to pop into my head.)Then again, for a one-day tutorial, I suppose it doesn't matter. But it might confuse folks later on.
The text was updated successfully, but these errors were encountered: