Permalink
Browse files

no admin stuff on models

  • Loading branch information...
1 parent b5d418a commit ce28e0c70508e2c2330aa9cc80ebb9bba1320444 @HonzaKral HonzaKral committed Apr 12, 2012
Showing with 0 additions and 9 deletions.
  1. +0 −9 ella/core/models/publishable.py
@@ -3,7 +3,6 @@
from django.db import models
from django.conf import settings
from django.utils.translation import ugettext_lazy as _, ugettext
-from django.utils.safestring import mark_safe
from django.contrib.contenttypes.models import ContentType
from django.template.defaultfilters import slugify
from django.core.urlresolvers import reverse
@@ -117,14 +116,6 @@ def get_absolute_url(self, domain=False):
def get_domain_url(self):
return self.get_absolute_url(domain=True)
- def get_domain_url_admin_tag(self):
- if self.get_domain_url() is not None:
- return mark_safe(u'<a href="%s">url</a>' % (self.get_domain_url()))
- else:
- return self.get_domain_url()
- get_domain_url_admin_tag.short_description = _('URL')
- get_domain_url_admin_tag.allow_tags = True
-
def clean(self):
if self.static:
return

0 comments on commit ce28e0c

Please sign in to comment.