I have three different models for my app. All are working as I expected. class Tender(models.Model): title = models.CharField(max_length=256) description = models.TextField() department = models.CharField(max_length=50) address = models.CharField(max_length=50) nature_of_work = models.CharField(choices=WORK_NATURE, max_length=1) period_of_completion = models.DateField() pubdat = models.DateTimeField(default=timezone.now)
class Job(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL) title = models.CharField(max_length=256) qualification = models.CharField(max_length=256) interview_type = models.CharField(max_length=2, choices=INTERVIEW_TYPE) type_of_job = models.CharField(max_length=1, choices=JOB_TYPE) number_of_vacancies = models.IntegerField() employer = models.CharField(max_length=50) salary = models.IntegerField() pubdat = models.DateTimeField(default=timezone.now) class News(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL) title = models.CharField(max_length=150) body = models.TextField() pubdat = models.DateTimeField(default=timezone.now) Now I am displaying each of them at separate page for each of the model (e.g. in the *jobs* page, I am displaying only the jobs.). But now at the home page, I want to display these according to their published date at the same page. How can I display different objects from different models at the same page? Do I make a separate model e.g. `class Post` and then use signal to create a new post whenever a new object is created from `Tender`, or `Job`, or `News`? I really hope there is a better way to achieve this. Please help me. Thank you. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHSNPWt%2BwkXBSxPr-O%3DWsCNJRfLK0EOUoji3nS%2BdMOWa3x5jDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.