title: Django auto repost data a week, month or a year depending on it's frequency of recurrence
body: <p>In my django project I am trying to repost a record based on its frequency of recurrence which could be daily, weekly, monthly etc. Let's say a record is posted today and it's frequency of recurrence is weekly, I want the record to keep reappearing on a weekly basis on the 'day' and 'time' as the previous week when it was created and so on, that is, an old record will be new and top of other records which will now be older than it based on frequency of recurrence.</p>
  
  <p>models.py </p>
  
  <pre><code>class Menu(models.Model):
      none = 0
      Daily = 1
      Weekly = 7
      Monthly = 30
      Quarterly = 90
      SemiAnual = 180
      Yearly = 365
  
      Frequency_Of_Reocurrence = (
          (none, "None"),
          (Daily, "Daily"),
          (Weekly, "Weekly"),
          (Monthly, "Monthly"),
          (Quarterly, "After 3 Months"),
          (SemiAnual, "After 6 Months"),
          (Yearly, "After 12 Months")
      )
      vendor = models.ForeignKey(Vendor, on_delete=models.CASCADE)
      name = models.CharField(verbose_name="food name", null=False, blank=False, max_length=100)
      description = models.TextField(verbose_name="Food Description", max_length=350, null=False, blank=False)
      image = models.ImageField(upload_to=user_directory_path, default='veggies.jpg')
      isrecurring = models.BooleanField(default=False)
      frequencyofreocurrence = models.IntegerField(choices=Frequency_Of_Recurrence)
      datetimecreated = models.DateTimeField(verbose_name='date-time-created', auto_now_add=True)
  </code></pre>
  
  <p>How exactly can I achieve what I'm trying to do in my views. </p>
  
  <p>Thanks in advance.</p>