prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Centre drive embeds
  <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se -->
  
  ### Description
  
  Center drive embeds. Currently it looks a bit weird.
  
  ![image](https://user-images.githubusercontent.com/29704138/28264214-3dd2eb48-6aea-11e7-9944-fb199c8d4ecc.png)
  
  
  ### Steps to Reproduce
  
  1. [First Step]
  2. [Second Step]
  3. [and so on...]
  
  <!-- Please select the appropriate "topic category"/blue and "issue type"/yellow label -->
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/google/models.py`
  Content:
  ```
  1 from datetime import date
  2 
  3 from django.db import models
  4 from django.utils.translation import ugettext_lazy as _
  5 from wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, \
  6     TabbedInterface, ObjectList
  7 from wagtail.wagtailcore import blocks
  8 from wagtail.wagtailcore.fields import StreamField, RichTextField
  9 from wagtail.wagtailcore.models import Page
  10 from wagtail.wagtailsearch import index
  11 
  12 from blocks.models import WAGTAIL_STATIC_BLOCKTYPES
  13 from utils.translation import TranslatedField
  14 
  15 
  16 class GoogleFormBlock(blocks.StructBlock):
  17     form_id = blocks.CharBlock()
  18     height = blocks.IntegerBlock()
  19 
  20     class Meta:
  21         label = _('Google Form')
  22         icon = 'fa-check-square-o'
  23         template = 'google/blocks/form.html'
  24         group = _('Meta')
  25 
  26 
  27 class GoogleFormIndex(Page):
  28     title_sv = models.CharField(max_length=255)
  29     translated_title = TranslatedField('title', 'title_sv')
  30 
  31     description_en = RichTextField(
  32         verbose_name=_('English description'),
  33         blank=True,
  34     )
  35     description_sv = RichTextField(
  36         verbose_name=_('Swedish description'),
  37         blank=True,
  38     )
  39     description = TranslatedField('description_en', 'description_sv')
  40 
  41     # Editor panels configuration
  42     content_panels = Page.content_panels + [
  43         FieldPanel('title_sv', classname="full title"),
  44         FieldPanel('description_en'),
  45         FieldPanel('description_sv'),
  46     ]
  47 
  48     # Sub-page type rules
  49     subpage_types = ['google.GoogleFormPage']
  50 
  51     def get_context(self, request, **kwargs):
  52         context = super(GoogleFormIndex, self).get_context(request, **kwargs)
  53 
  54         # Add extra variables and return the updated context
  55         context['google_forms'] = GoogleFormPage.objects.child_of(self).live()\
  56             .order_by('-deadline')
  57         return context
  58 
  59 
  60 class GoogleFormPage(Page):
  61     title_sv = models.CharField(max_length=255)
  62     translated_title = TranslatedField('title', 'title_sv')
  63 
  64     # TODO: Limit to one form!
  65     form_en = StreamField([('google_form', GoogleFormBlock())])
  66     form_sv = StreamField([('google_form', GoogleFormBlock())])
  67     form = TranslatedField('form_en', 'form_sv')
  68 
  69     deadline = models.DateField(verbose_name=_('Form deadline'))
  70 
  71     results_en = StreamField(
  72         WAGTAIL_STATIC_BLOCKTYPES,
  73         blank=True,
  74     )
  75     results_sv = StreamField(
  76         WAGTAIL_STATIC_BLOCKTYPES,
  77         blank=True,
  78     )
  79     results = TranslatedField('results_en', 'results_sv')
  80 
  81     @property
  82     def is_past_due(self) -> bool:
  83         return date.today() > self.deadline
  84 
  85     # Editor panels configuration
  86     content_panels = Page.content_panels + [
  87         FieldPanel('title_sv', classname="full title"),
  88         FieldPanel('deadline'),
  89         StreamFieldPanel('form_en'),
  90         StreamFieldPanel('form_sv'),
  91     ]
  92 
  93     edit_handler = TabbedInterface([
  94         ObjectList(content_panels, heading=_('Common')),
  95         ObjectList([StreamFieldPanel('results_en')], heading=_('English')),
  96         ObjectList([StreamFieldPanel('results_sv')], heading=_('Swedish')),
  97         ObjectList(
  98             Page.promote_panels + Page.settings_panels, heading=_('Settings')
  99         ),
  100     ])
  101 
  102     # Search index configuration
  103     search_fields = Page.search_fields + [
  104         index.SearchField('title_sv'),
  105         index.FilterField('results_en'),
  106         index.FilterField('results_sv'),
  107         index.FilterField('deadline'),
  108     ]
  109 
  110     # Parent page / subpage type rules
  111     parent_page_types = ['google.GoogleFormIndex']
  112     subpage_types = []
  113 
  114 
  115 class GoogleDriveBlock(blocks.StructBlock):
  116     folder_id = blocks.CharBlock()
  117     view = blocks.ChoiceBlock(choices=[
  118         ('list', _('List')),
  119         ('grid', _('Grid')),
  120     ])
  121     height = blocks.IntegerBlock()
  122 
  123     class Meta:
  124         label = _('Google Drive')
  125         icon = 'fa-folder-open'
  126         template = 'google/blocks/drive.html'
  127
  ```
  --- 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/src/google/models.py b/src/google/models.py
  --- a/src/google/models.py
  +++ b/src/google/models.py
  @@ -21,7 +21,7 @@
           label = _('Google Form')
           icon = 'fa-check-square-o'
           template = 'google/blocks/form.html'
  -        group = _('Meta')
  +        group = _('Embed')
   
   
   class GoogleFormIndex(Page):
  @@ -124,3 +124,4 @@
           label = _('Google Drive')
           icon = 'fa-folder-open'
           template = 'google/blocks/drive.html'
  +        group = _('Embed')
  
verification_info: {"golden_diff": "diff --git a/src/google/models.py b/src/google/models.py\n--- a/src/google/models.py\n+++ b/src/google/models.py\n@@ -21,7 +21,7 @@\n         label = _('Google Form')\n         icon = 'fa-check-square-o'\n         template = 'google/blocks/form.html'\n-        group = _('Meta')\n+        group = _('Embed')\n \n \n class GoogleFormIndex(Page):\n@@ -124,3 +124,4 @@\n         label = _('Google Drive')\n         icon = 'fa-folder-open'\n         template = 'google/blocks/drive.html'\n+        group = _('Embed')\n", "issue": "Centre drive embeds\n<!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se -->\r\n\r\n### Description\r\n\r\nCenter drive embeds. Currently it looks a bit weird.\r\n\r\n![image](https://user-images.githubusercontent.com/29704138/28264214-3dd2eb48-6aea-11e7-9944-fb199c8d4ecc.png)\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n1. [First Step]\r\n2. [Second Step]\r\n3. [and so on...]\r\n\r\n<!-- Please select the appropriate \"topic category\"/blue and \"issue type\"/yellow label -->\r\n\n", "before_files": [{"content": "from datetime import date\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, \\\n    TabbedInterface, ObjectList\nfrom wagtail.wagtailcore import blocks\nfrom wagtail.wagtailcore.fields import StreamField, RichTextField\nfrom wagtail.wagtailcore.models import Page\nfrom wagtail.wagtailsearch import index\n\nfrom blocks.models import WAGTAIL_STATIC_BLOCKTYPES\nfrom utils.translation import TranslatedField\n\n\nclass GoogleFormBlock(blocks.StructBlock):\n    form_id = blocks.CharBlock()\n    height = blocks.IntegerBlock()\n\n    class Meta:\n        label = _('Google Form')\n        icon = 'fa-check-square-o'\n        template = 'google/blocks/form.html'\n        group = _('Meta')\n\n\nclass GoogleFormIndex(Page):\n    title_sv = models.CharField(max_length=255)\n    translated_title = TranslatedField('title', 'title_sv')\n\n    description_en = RichTextField(\n        verbose_name=_('English description'),\n        blank=True,\n    )\n    description_sv = RichTextField(\n        verbose_name=_('Swedish description'),\n        blank=True,\n    )\n    description = TranslatedField('description_en', 'description_sv')\n\n    # Editor panels configuration\n    content_panels = Page.content_panels + [\n        FieldPanel('title_sv', classname=\"full title\"),\n        FieldPanel('description_en'),\n        FieldPanel('description_sv'),\n    ]\n\n    # Sub-page type rules\n    subpage_types = ['google.GoogleFormPage']\n\n    def get_context(self, request, **kwargs):\n        context = super(GoogleFormIndex, self).get_context(request, **kwargs)\n\n        # Add extra variables and return the updated context\n        context['google_forms'] = GoogleFormPage.objects.child_of(self).live()\\\n            .order_by('-deadline')\n        return context\n\n\nclass GoogleFormPage(Page):\n    title_sv = models.CharField(max_length=255)\n    translated_title = TranslatedField('title', 'title_sv')\n\n    # TODO: Limit to one form!\n    form_en = StreamField([('google_form', GoogleFormBlock())])\n    form_sv = StreamField([('google_form', GoogleFormBlock())])\n    form = TranslatedField('form_en', 'form_sv')\n\n    deadline = models.DateField(verbose_name=_('Form deadline'))\n\n    results_en = StreamField(\n        WAGTAIL_STATIC_BLOCKTYPES,\n        blank=True,\n    )\n    results_sv = StreamField(\n        WAGTAIL_STATIC_BLOCKTYPES,\n        blank=True,\n    )\n    results = TranslatedField('results_en', 'results_sv')\n\n    @property\n    def is_past_due(self) -> bool:\n        return date.today() > self.deadline\n\n    # Editor panels configuration\n    content_panels = Page.content_panels + [\n        FieldPanel('title_sv', classname=\"full title\"),\n        FieldPanel('deadline'),\n        StreamFieldPanel('form_en'),\n        StreamFieldPanel('form_sv'),\n    ]\n\n    edit_handler = TabbedInterface([\n        ObjectList(content_panels, heading=_('Common')),\n        ObjectList([StreamFieldPanel('results_en')], heading=_('English')),\n        ObjectList([StreamFieldPanel('results_sv')], heading=_('Swedish')),\n        ObjectList(\n            Page.promote_panels + Page.settings_panels, heading=_('Settings')\n        ),\n    ])\n\n    # Search index configuration\n    search_fields = Page.search_fields + [\n        index.SearchField('title_sv'),\n        index.FilterField('results_en'),\n        index.FilterField('results_sv'),\n        index.FilterField('deadline'),\n    ]\n\n    # Parent page / subpage type rules\n    parent_page_types = ['google.GoogleFormIndex']\n    subpage_types = []\n\n\nclass GoogleDriveBlock(blocks.StructBlock):\n    folder_id = blocks.CharBlock()\n    view = blocks.ChoiceBlock(choices=[\n        ('list', _('List')),\n        ('grid', _('Grid')),\n    ])\n    height = blocks.IntegerBlock()\n\n    class Meta:\n        label = _('Google Drive')\n        icon = 'fa-folder-open'\n        template = 'google/blocks/drive.html'\n", "path": "src/google/models.py"}], "after_files": [{"content": "from datetime import date\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, \\\n    TabbedInterface, ObjectList\nfrom wagtail.wagtailcore import blocks\nfrom wagtail.wagtailcore.fields import StreamField, RichTextField\nfrom wagtail.wagtailcore.models import Page\nfrom wagtail.wagtailsearch import index\n\nfrom blocks.models import WAGTAIL_STATIC_BLOCKTYPES\nfrom utils.translation import TranslatedField\n\n\nclass GoogleFormBlock(blocks.StructBlock):\n    form_id = blocks.CharBlock()\n    height = blocks.IntegerBlock()\n\n    class Meta:\n        label = _('Google Form')\n        icon = 'fa-check-square-o'\n        template = 'google/blocks/form.html'\n        group = _('Embed')\n\n\nclass GoogleFormIndex(Page):\n    title_sv = models.CharField(max_length=255)\n    translated_title = TranslatedField('title', 'title_sv')\n\n    description_en = RichTextField(\n        verbose_name=_('English description'),\n        blank=True,\n    )\n    description_sv = RichTextField(\n        verbose_name=_('Swedish description'),\n        blank=True,\n    )\n    description = TranslatedField('description_en', 'description_sv')\n\n    # Editor panels configuration\n    content_panels = Page.content_panels + [\n        FieldPanel('title_sv', classname=\"full title\"),\n        FieldPanel('description_en'),\n        FieldPanel('description_sv'),\n    ]\n\n    # Sub-page type rules\n    subpage_types = ['google.GoogleFormPage']\n\n    def get_context(self, request, **kwargs):\n        context = super(GoogleFormIndex, self).get_context(request, **kwargs)\n\n        # Add extra variables and return the updated context\n        context['google_forms'] = GoogleFormPage.objects.child_of(self).live()\\\n            .order_by('-deadline')\n        return context\n\n\nclass GoogleFormPage(Page):\n    title_sv = models.CharField(max_length=255)\n    translated_title = TranslatedField('title', 'title_sv')\n\n    # TODO: Limit to one form!\n    form_en = StreamField([('google_form', GoogleFormBlock())])\n    form_sv = StreamField([('google_form', GoogleFormBlock())])\n    form = TranslatedField('form_en', 'form_sv')\n\n    deadline = models.DateField(verbose_name=_('Form deadline'))\n\n    results_en = StreamField(\n        WAGTAIL_STATIC_BLOCKTYPES,\n        blank=True,\n    )\n    results_sv = StreamField(\n        WAGTAIL_STATIC_BLOCKTYPES,\n        blank=True,\n    )\n    results = TranslatedField('results_en', 'results_sv')\n\n    @property\n    def is_past_due(self) -> bool:\n        return date.today() > self.deadline\n\n    # Editor panels configuration\n    content_panels = Page.content_panels + [\n        FieldPanel('title_sv', classname=\"full title\"),\n        FieldPanel('deadline'),\n        StreamFieldPanel('form_en'),\n        StreamFieldPanel('form_sv'),\n    ]\n\n    edit_handler = TabbedInterface([\n        ObjectList(content_panels, heading=_('Common')),\n        ObjectList([StreamFieldPanel('results_en')], heading=_('English')),\n        ObjectList([StreamFieldPanel('results_sv')], heading=_('Swedish')),\n        ObjectList(\n            Page.promote_panels + Page.settings_panels, heading=_('Settings')\n        ),\n    ])\n\n    # Search index configuration\n    search_fields = Page.search_fields + [\n        index.SearchField('title_sv'),\n        index.FilterField('results_en'),\n        index.FilterField('results_sv'),\n        index.FilterField('deadline'),\n    ]\n\n    # Parent page / subpage type rules\n    parent_page_types = ['google.GoogleFormIndex']\n    subpage_types = []\n\n\nclass GoogleDriveBlock(blocks.StructBlock):\n    folder_id = blocks.CharBlock()\n    view = blocks.ChoiceBlock(choices=[\n        ('list', _('List')),\n        ('grid', _('Grid')),\n    ])\n    height = blocks.IntegerBlock()\n\n    class Meta:\n        label = _('Google Drive')\n        icon = 'fa-folder-open'\n        template = 'google/blocks/drive.html'\n        group = _('Embed')\n", "path": "src/google/models.py"}]}