# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.validators import MinValueValidator, MaxValueValidator

from opps.core.models.published import Published
from opps.core.models.date import Date



class Image(Published, Date):

    title = models.CharField(_(u"Title"), max_length=140)
    slug = models.SlugField(_(u"Slug"), max_length=150, blank=True)
    image = models.ImageField(upload_to="opps_images/")
    description = models.CharField(_(u"Description"), max_length=255,
            null=True, blank=True)

    credit = models.CharField(_(u"Credit"), max_length=255, blank=False)

    def __unicode__(self):
        return self.title

# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _

from opps.core.models.published import Published
from opps.core.models.date import Date



class Image(Published, Date):

    title = models.CharField(_(u"Title"), max_length=140)
    slug = models.SlugField(_(u"Slug"), max_length=150, blank=True)
    image = models.ImageField(upload_to="opps_images/")
    description = models.CharField(_(u"Description"), max_length=255,
            null=True, blank=True)

    credit = models.CharField(_(u"Credit"), max_length=255, blank=False)

    def __unicode__(self):
        return self.title

remove validators not used on image model core