
from django.db import models
from django.utils.translation import ugettext_lazy as _

from feincms._internal import monkeypatch_property


def register(cls, admin_cls):
    cls.add_to_class('symlinked_page', models.ForeignKey('self', blank=True, null=True,
        related_name='%(app_label)s_%(class)s_symlinks',
        verbose_name=_('symlinked page'),
        help_text=_('All content is inherited from this page if given.')))

    @monkeypatch_property(cls)
    def content(self):
        if not hasattr(self, '_content_proxy'):
            if self.symlinked_page:
                self._content_proxy = self.content_proxy_class(self.symlinked_page)
            else:
                self._content_proxy = self.content_proxy_class(self)

        return self._content_proxy

    admin_cls.raw_id_fields.append('symlinked_page')

    admin_cls.fieldsets.append((_('Symlinked page'), {
        'fields': ('symlinked_page',),
        'classes': ('collapse',),
        }))


from django.db import models
from django.utils.translation import ugettext_lazy as _

from feincms._internal import monkeypatch_property


def register(cls, admin_cls):
    cls.add_to_class('symlinked_page', models.ForeignKey('self', blank=True, null=True,
        related_name='%(app_label)s_%(class)s_symlinks',
        verbose_name=_('symlinked page'),
        help_text=_('All content is inherited from this page if given.')))

    @monkeypatch_property(cls)
    def content(self):
        if not hasattr(self, '_content_proxy'):
            if self.symlinked_page:
                self._content_proxy = self.content_proxy_class(self.symlinked_page)
            else:
                self._content_proxy = self.content_proxy_class(self)

        return self._content_proxy

    admin_cls.raw_id_fields.append('symlinked_page')

Move symlinked page field to "Other options"
Move symlinked page field to "Other options"

  
  from django.db import models
  from django.utils.translation import ugettext_lazy as _
  
  from feincms._internal import monkeypatch_property
  
  
  def register(cls, admin_cls):
      cls.add_to_class('symlinked_page', models.ForeignKey('self', blank=True, null=True,
          related_name='%(app_label)s_%(class)s_symlinks',
          verbose_name=_('symlinked page'),
          help_text=_('All content is inherited from this page if given.')))
  
      @monkeypatch_property(cls)
      def content(self):
          if not hasattr(self, '_content_proxy'):
              if self.symlinked_page:
                  self._content_proxy = self.content_proxy_class(self.symlinked_page)
              else:
                  self._content_proxy = self.content_proxy_class(self)
  
          return self._content_proxy
  
      admin_cls.raw_id_fields.append('symlinked_page')
  
-     admin_cls.fieldsets.append((_('Symlinked page'), {
-         'fields': ('symlinked_page',),
-         'classes': ('collapse',),
-         }))
- 
Move symlinked page field to "Other options"
## Code Before:

from django.db import models
from django.utils.translation import ugettext_lazy as _

from feincms._internal import monkeypatch_property


def register(cls, admin_cls):
    cls.add_to_class('symlinked_page', models.ForeignKey('self', blank=True, null=True,
        related_name='%(app_label)s_%(class)s_symlinks',
        verbose_name=_('symlinked page'),
        help_text=_('All content is inherited from this page if given.')))

    @monkeypatch_property(cls)
    def content(self):
        if not hasattr(self, '_content_proxy'):
            if self.symlinked_page:
                self._content_proxy = self.content_proxy_class(self.symlinked_page)
            else:
                self._content_proxy = self.content_proxy_class(self)

        return self._content_proxy

    admin_cls.raw_id_fields.append('symlinked_page')

    admin_cls.fieldsets.append((_('Symlinked page'), {
        'fields': ('symlinked_page',),
        'classes': ('collapse',),
        }))

## Instruction:
Move symlinked page field to "Other options"
## Code After:

from django.db import models
from django.utils.translation import ugettext_lazy as _

from feincms._internal import monkeypatch_property


def register(cls, admin_cls):
    cls.add_to_class('symlinked_page', models.ForeignKey('self', blank=True, null=True,
        related_name='%(app_label)s_%(class)s_symlinks',
        verbose_name=_('symlinked page'),
        help_text=_('All content is inherited from this page if given.')))

    @monkeypatch_property(cls)
    def content(self):
        if not hasattr(self, '_content_proxy'):
            if self.symlinked_page:
                self._content_proxy = self.content_proxy_class(self.symlinked_page)
            else:
                self._content_proxy = self.content_proxy_class(self)

        return self._content_proxy

    admin_cls.raw_id_fields.append('symlinked_page')
