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


class Event(models.Model):
    url = models.URLField(_(u'Url'), null=True, unique=True)
    title = models.CharField(_(u'Título'), max_length=200)
    image = models.URLField(_(u'Imagem'), null=True, max_length=250)
    from_day = models.DateTimeField(_('De'))
    to_day = models.DateTimeField(_('To'))
    local = models.CharField(_('Local'), max_length=200)
    address = models.CharField(_(u'Endereço'), max_length=200)
    price = models.CharField(_(u'Preço'), max_length=20)

    def __unicode__(self):
        return self.title
# coding: utf-8
from django.db import models
from django.utils.translation import ugettext_lazy as _


class Event(models.Model):
    url = models.URLField(_(u'Url'), null=True, unique=True)
    title = models.CharField(_(u'Título'), max_length=200)
    image = models.URLField(_(u'Imagem'), null=True, max_length=250)
    start_date = models.DateTimeField(_(u'Começa em:'))
    local = models.CharField(_('Local'), max_length=200)
    address = models.CharField(_(u'Endereço'), max_length=200)
    price = models.CharField(_(u'Preço'), max_length=20)

    def __unicode__(self):
        return self.title
create start_date field and removed to_day in event model