iterate

13 views
Skip to first unread message

sum abiut

unread,
Jan 26, 2015, 11:02:46 PM1/26/15
to django...@googlegroups.com
is it possible to iterate through  a number of rows to find out which row was the earliest to be enter.

cheers,

Lachlan Musicman

unread,
Jan 27, 2015, 12:09:30 AM1/27/15
to django...@googlegroups.com
Of course, although it depends on what your definition of "earliest"
is (most likely you mean from a data entry perspective), and what
fields and field types you have. You could sort by date, if you have a
creation date field, you could sort by ID/PK if you haven't changed
that field on the table...

L.
------
"This is a profound psychological violence here. How can one even
begin to speak of dignity in labor when one secretly feels one's job
should not exist?"

On the Phenomenon of Bullshit Jobs, David Graeber
http://strikemag.org/bullshit-jobs/
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPCf-y7egzPe%2B3R-Bz5hdSbqLwQxyKQyHFNUu61UcOv2UP14sw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages