L
L
Lolo Penguin2020-05-29 14:04:15
Django
Lolo Penguin, 2020-05-29 14:04:15

How to display from the end of the database?

How to display from the end of the database?
For example: .order_by('-date') - will output from the end of the database relative to the date, but you can't just display, starting from the last database object, like: .order_by('-') ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2020-05-29
@ledo02

-pk, provided that pk is an autoincrement and not some uuid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question