# Path: tests/test_project/gallery/models.py
# class Gallery(models.Model):
# 
#     title = models.CharField(max_length=255)
# 
#     def __unicode__(self):
#         return self.title
# 
# class GalleryMultiupload(models.Model):
# 
#     title = models.CharField(max_length=255)
#     photos = ImageGroupField()
# 
#     def __unicode__(self):
#         return self.title
# 
# class Photo(models.Model):
# 
#     gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE)
#     title = models.CharField(max_length=255)
#     arbitrary_file = FileField(blank=True, null=True)
#     photo_2x3 = ImageField(manual_crop="2:3", blank=True)
# 
#     def __unicode__(self):
#         return self.title


from django.contrib import admin
from .models import Gallery, GalleryMultiupload, Photo



class PhotoInline(admin.StackedInline):

    model = Photo


class GalleryAdmin(admin.ModelAdmin):

    inlines = [
        PhotoInline,
    ]



# Path: tests/test_project/gallery/models.py
# class Gallery(models.Model):
# 
#     title = models.CharField(max_length=255)
# 
#     def __unicode__(self):
#         return self.title
# 
# class GalleryMultiupload(models.Model):
# 
#     title = models.CharField(max_length=255)
#     photos = ImageGroupField()
# 
#     def __unicode__(self):
#         return self.title
# 
# class Photo(models.Model):
# 
#     gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE)
#     title = models.CharField(max_length=255)
#     arbitrary_file = FileField(blank=True, null=True)
#     photo_2x3 = ImageField(manual_crop="2:3", blank=True)
# 
#     def __unicode__(self):
#         return self.title


# Path: tests/test_project/gallery/admin.py
from django.contrib import admin
from .models import Gallery, GalleryMultiupload, Photo




class PhotoInline(admin.StackedInline):

    model = Photo


class GalleryAdmin(admin.ModelAdmin):

    inlines = [
        PhotoInline,
    ]



admin.site.register(Photo)