Did I find the right examples for you? yes no

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/d/j/django-photologue-HEAD/photologue/admin.py   django-photologue(Download)
from django.utils.translation import ungettext, ugettext_lazy as _
 
from .models import Gallery, Photo, GalleryUpload, PhotoEffect, PhotoSize, \
    Watermark
 

src/d/j/django-photologue-2.7/photologue/admin.py   django-photologue(Download)
from django.contrib import admin
from django import forms
from django.conf import settings
 
from .models import Gallery, Photo, GalleryUpload, PhotoEffect, PhotoSize, \

src/d/j/django-photologue-HEAD/photologue/tests/test_zipupload.py   django-photologue(Download)
from django.test import TestCase
from django.core.files import File
from django.core.exceptions import ValidationError
 
from ..models import GalleryUpload, Gallery, Photo
        with open(SAMPLE_ZIP_PATH, mode='rb') as f:
            test_file = File(f)
            gallery = GalleryUpload(title='Test',
                                    zip_file=test_file)
        self.assertRaisesMessage(ValidationError,
    def test_title_or_gallery(self):
        """We should supply either a title field or a gallery."""
 
        gallery = GalleryUpload()
        self.assertRaisesMessage(ValidationError,