prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Updating promo requests 
  **Describe the bug**
  It is not possible to update the promo request within a week of the publish date 
  
  **How to reproduce** 
  Create a promo request 
  Try to update the designer within a week to publish date 
  
  **Expected behavior** 
  The request can only be created more than a week before the publishing date, but assigned to, status and drive folder can always be edited. 
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `website/promotion/forms.py`
  Content:
  ```
  1 from django import forms
  2 from django.utils import timezone
  3 
  4 from promotion.models import PromotionRequest
  5 from thaliawebsite.settings import PROMO_PUBLISH_DATE_TIMEDELTA
  6 
  7 
  8 class PromotionRequestForm(forms.ModelForm):
  9     class Meta:
  10         model = PromotionRequest
  11         fields = [
  12             "event",
  13             "publish_date",
  14             "channel",
  15             "assigned_to",
  16             "status",
  17             "drive_folder",
  18             "remarks",
  19         ]
  20 
  21     def clean_publish_date(self):
  22         publish_date = self.cleaned_data.get("publish_date")
  23         create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA
  24         if timezone.localdate() > create_time_minimum:
  25             raise forms.ValidationError(
  26                 "Publish date cannot be within a week from now."
  27             )
  28         if "publish_date" in self.changed_data:
  29             create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA
  30             if timezone.localdate() > create_time_minimum:
  31                 raise forms.ValidationError(
  32                     "Publish date cannot be within a week from now."
  33                 )
  34         return publish_date
  35
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/website/promotion/forms.py b/website/promotion/forms.py
  --- a/website/promotion/forms.py
  +++ b/website/promotion/forms.py
  @@ -20,11 +20,6 @@
   
       def clean_publish_date(self):
           publish_date = self.cleaned_data.get("publish_date")
  -        create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA
  -        if timezone.localdate() > create_time_minimum:
  -            raise forms.ValidationError(
  -                "Publish date cannot be within a week from now."
  -            )
           if "publish_date" in self.changed_data:
               create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA
               if timezone.localdate() > create_time_minimum:
  
verification_info: {"golden_diff": "diff --git a/website/promotion/forms.py b/website/promotion/forms.py\n--- a/website/promotion/forms.py\n+++ b/website/promotion/forms.py\n@@ -20,11 +20,6 @@\n \n     def clean_publish_date(self):\n         publish_date = self.cleaned_data.get(\"publish_date\")\n-        create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA\n-        if timezone.localdate() > create_time_minimum:\n-            raise forms.ValidationError(\n-                \"Publish date cannot be within a week from now.\"\n-            )\n         if \"publish_date\" in self.changed_data:\n             create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA\n             if timezone.localdate() > create_time_minimum:\n", "issue": "Updating promo requests \n**Describe the bug**\r\nIt is not possible to update the promo request within a week of the publish date \r\n\r\n**How to reproduce** \r\nCreate a promo request \r\nTry to update the designer within a week to publish date \r\n\r\n**Expected behavior** \r\nThe request can only be created more than a week before the publishing date, but assigned to, status and drive folder can always be edited. \n", "before_files": [{"content": "from django import forms\nfrom django.utils import timezone\n\nfrom promotion.models import PromotionRequest\nfrom thaliawebsite.settings import PROMO_PUBLISH_DATE_TIMEDELTA\n\n\nclass PromotionRequestForm(forms.ModelForm):\n    class Meta:\n        model = PromotionRequest\n        fields = [\n            \"event\",\n            \"publish_date\",\n            \"channel\",\n            \"assigned_to\",\n            \"status\",\n            \"drive_folder\",\n            \"remarks\",\n        ]\n\n    def clean_publish_date(self):\n        publish_date = self.cleaned_data.get(\"publish_date\")\n        create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA\n        if timezone.localdate() > create_time_minimum:\n            raise forms.ValidationError(\n                \"Publish date cannot be within a week from now.\"\n            )\n        if \"publish_date\" in self.changed_data:\n            create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA\n            if timezone.localdate() > create_time_minimum:\n                raise forms.ValidationError(\n                    \"Publish date cannot be within a week from now.\"\n                )\n        return publish_date\n", "path": "website/promotion/forms.py"}], "after_files": [{"content": "from django import forms\nfrom django.utils import timezone\n\nfrom promotion.models import PromotionRequest\nfrom thaliawebsite.settings import PROMO_PUBLISH_DATE_TIMEDELTA\n\n\nclass PromotionRequestForm(forms.ModelForm):\n    class Meta:\n        model = PromotionRequest\n        fields = [\n            \"event\",\n            \"publish_date\",\n            \"channel\",\n            \"assigned_to\",\n            \"status\",\n            \"drive_folder\",\n            \"remarks\",\n        ]\n\n    def clean_publish_date(self):\n        publish_date = self.cleaned_data.get(\"publish_date\")\n        if \"publish_date\" in self.changed_data:\n            create_time_minimum = publish_date - PROMO_PUBLISH_DATE_TIMEDELTA\n            if timezone.localdate() > create_time_minimum:\n                raise forms.ValidationError(\n                    \"Publish date cannot be within a week from now.\"\n                )\n        return publish_date\n", "path": "website/promotion/forms.py"}]}