I have a scenario where items are paginated from list of items in a model and I want to create a function to return the page which contains this item.
for example
class Item(models.Model):
subject = models.CharField(max_length=200)
Assuming i have 1000 items in the table and i always return 10 per page. How can i build a method/function in the model that would tell me in which page the item would fall?
please advise?