from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool

from . import models


@plugin_pool.register
class ImageGalleryPlugin(ContentPlugin):
    model = models.ImageGalleryShowItem
    category = _('Assets')
    render_template = 'icekit/plugins/image_gallery/default.html'
    raw_id_fields = ['slide_show', ]

    class FrontendMedia:
        js = (
            'plugins/image_gallery/init.js',
        )

from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool

from . import models


@plugin_pool.register
class ImageGalleryPlugin(ContentPlugin):
    model = models.ImageGalleryShowItem
    category = _('Assets')
    render_template = 'icekit/plugins/image_gallery/default.html'
    raw_id_fields = ['slide_show', ]

Remove invalid reference to unnecessary JS for image gallery plugin
Remove invalid reference to unnecessary JS for image gallery plugin

  from django.utils.translation import ugettext_lazy as _
  from fluent_contents.extensions import ContentPlugin, plugin_pool
  
  from . import models
  
  
  @plugin_pool.register
  class ImageGalleryPlugin(ContentPlugin):
      model = models.ImageGalleryShowItem
      category = _('Assets')
      render_template = 'icekit/plugins/image_gallery/default.html'
      raw_id_fields = ['slide_show', ]
  
-     class FrontendMedia:
-         js = (
-             'plugins/image_gallery/init.js',
-         )
- 
Remove invalid reference to unnecessary JS for image gallery plugin
## Code Before:
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool

from . import models


@plugin_pool.register
class ImageGalleryPlugin(ContentPlugin):
    model = models.ImageGalleryShowItem
    category = _('Assets')
    render_template = 'icekit/plugins/image_gallery/default.html'
    raw_id_fields = ['slide_show', ]

    class FrontendMedia:
        js = (
            'plugins/image_gallery/init.js',
        )

## Instruction:
Remove invalid reference to unnecessary JS for image gallery plugin
## Code After:
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool

from . import models


@plugin_pool.register
class ImageGalleryPlugin(ContentPlugin):
    model = models.ImageGalleryShowItem
    category = _('Assets')
    render_template = 'icekit/plugins/image_gallery/default.html'
    raw_id_fields = ['slide_show', ]
