from __future__ import unicode_literals

from django.db import models
from django.contrib.auth.models import User

from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from modelcluster.fields import ParentalKey


class BlogPageAuthor(Orderable, models.Model):
    blog_page = ParentalKey('BlogPage', related_name='contributors')
    user = models.ForeignKey(User)
    position = models.CharField(max_length=64, default='Author')

    panels = [
        FieldPanel('user'),
        FieldPanel('position'),
    ]

ee9c7abfe9be3222f223c2e108681823f8ac7f6d
<mask token>

<mask token>


class BlogPageAuthor(Orderable, models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class BlogPageAuthor(Orderable, models.Model):
    blog_page = ParentalKey('BlogPage', related_name='contributors')
    user = models.ForeignKey(User)
    position = models.CharField(max_length=64, default='Author')
    panels = [FieldPanel('user'), FieldPanel('position')]

from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from modelcluster.fields import ParentalKey


class BlogPageAuthor(Orderable, models.Model):
    blog_page = ParentalKey('BlogPage', related_name='contributors')
    user = models.ForeignKey(User)
    position = models.CharField(max_length=64, default='Author')
    panels = [FieldPanel('user'), FieldPanel('position')]

from __future__ import unicode_literals

from django.db import models
from django.contrib.auth.models import User

from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from modelcluster.fields import ParentalKey


class BlogPageAuthor(Orderable, models.Model):
    blog_page = ParentalKey('BlogPage', related_name='contributors')
    user = models.ForeignKey(User)
    position = models.CharField(max_length=64, default='Author')

    panels = [
        FieldPanel('user'),
        FieldPanel('position'),
    ]
