On Dec 6, 12:34 pm, kenneth gonsalves <law...@thenilgiris.com> wrote:
> On Tue, 2011-12-06 at 02:15 -0800, Derek wrote:
> > Another side comment would be a suggestion to avoid "old skl vrbl nms"
> > - in other words, use "player" for "ply", "month" for "mnth", "scores"
> > for "scrs", "form" for "fm" and so on.  It may seem obvious right now
> > what those mean, but you (or someone else?) comes back in six months
> > or a year's time...
>
> 'player', 'score' etc are names used in my models/fields, I was under
> the impression that instances should bear the same name as the models so
> I make similar names - although frankly I do not know where I got the
> impression from and whether it is correct or not.

Yes, I would agree with that.  So code like:

scrs = Score.objects.all()

could then be written as:

scores = Score.objects.all()

so it will then be fairly obvious (downstream of the assignment) that
`scores` contains data from the `Score` model.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to