from armstrong.apps.content.models import Content
from armstrong.core.arm_content.mixins import AuthorsMixin
from armstrong.core.arm_content.mixins import EmbeddedVideoMixin
from armstrong.core.arm_content.fields import EmbeddedVideoField

from django.contrib.sites.models import Site
from django.db import models

from . import settings


class EmbeddedVideoBase(Content, EmbeddedVideoMixin, models.Model):
    aspect_ratio = models.CharField(max_length=5,
            choices=settings.ASPECT_RATIOS,
            default=settings.DEFAULT_ASPECT_RATIO)

    # TODO: screen cap thumbnail
    screencap_url = models.URLField()
    sites = models.ManyToManyField(Site)

    class Meta:
        abstract = True


class EmbeddedVideo(EmbeddedVideoBase):
    pass

@@ -237,53 +237,8 @@
 ld%0A%0A
-from django.contrib.sites.models import Site%0A
 from
@@ -576,49 +576,8 @@
 ld()
-%0A    sites = models.ManyToManyField(Site)
 %0A%0A  

Remove sites from explicitly being defined (thanks @niran for pointing it out)