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

from googl.short import GooglUrlShort

from opps.core.models import Publishable, BaseConfig


class FlatPage(Publishable):
    title = models.CharField(_(u"Title"), max_length=140, db_index=True)
    headline = models.TextField(_(u"Headline"), blank=True, null=True)
    slug = models.SlugField(
        _(u"URL"),
        db_index=True,
        max_length=150,
        unique=True,
    )
    show_in_menu = models.BooleanField(_(u"Show in menu?"), default=False)
    main_image = models.ForeignKey(
        'images.Image',
        null=True, blank=True,
        on_delete=models.SET_NULL,
        verbose_name=_(u'Main Image'),
    )
    content = models.TextField(_(u"Content"))
    order = models.IntegerField(_(u"Order"), default=0)

    def __unicode__(self):
        return u"{0} - {1}".format(self.site.name, self.slug)


class FlatPageConfig(BaseConfig):
    """
    Default implementation
    """
    pass

@@ -488,24 +488,119 @@
 True,%0A    )%0A
+    short_url = models.URLField(%0A        _(%22Short URL%22),%0A        null=True, blank=False,%0A    )%0A
     show_in_
@@ -936,16 +936,141 @@
 ult=0)%0A%0A
+    def get_absolute_url(self):%0A        return %22/page/%7B0%7D%22.format(self.slug)%0A    get_absolute_url.short_description = 'URL'%0A%0A
     def 

Add field short_url on flatpages model