# Path: attachments/models.py
# class Media(models.Model):
#     class Meta:
# class Image(Media):
# class Video(Media):
# class Audio(Media):
#     class Meta:
# class Review(models.Model):
# class Poll(models.Model):
# class PollChoice(models.Model):
#     def credit(self):
#     def is_courtesy(self):
#     def get_image_at_resolution(self, resolution, crop='center', quality=90):
#     def aspect_ratio(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):


from django.db import models
from django.contrib.contenttypes.fields import GenericRelation
from attachments import models as attachments_models



class ArtRequest(models.Model):
    """A request for a piece of art to accompany a Story."""

    story = models.ForeignKey('core.Story')
    assignees = models.ManyToManyField('authors.Author', blank=True)
    instructions = models.TextField(blank=True)

# Path: attachments/models.py
# class Media(models.Model):
#     class Meta:
# class Image(Media):
# class Video(Media):
# class Audio(Media):
#     class Meta:
# class Review(models.Model):
# class Poll(models.Model):
# class PollChoice(models.Model):
#     def credit(self):
#     def is_courtesy(self):
#     def get_image_at_resolution(self, resolution, crop='center', quality=90):
#     def aspect_ratio(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):


# Path: requests/models.py
from django.db import models
from django.contrib.contenttypes.fields import GenericRelation
from attachments import models as attachments_models




class ArtRequest(models.Model):
    """A request for a piece of art to accompany a Story."""

    story = models.ForeignKey('core.Story')
    assignees = models.ManyToManyField('authors.Author', blank=True)
    instructions = models.TextField(blank=True)

    images = GenericRelation(attachments_models.Image)