Commits

Guilherme Gondim committed ff6c6af

Remove signal function addslug()

Comments (0)

Files changed (1)

 # -*- coding: utf-8 -*-
 #
-# Copyright (c) 2011 Guilherme Gondim
+# Copyright (c) 2011-2012 Guilherme Gondim
 # Copyright (c) 2009 Interlegis
 #
 # This file is part of Django IBGE.
 #
 
 from django.db import models
-from django.template.defaultfilters import slugify
 
 
 class UnidadeFederativa(models.Model):
 
     def __unicode__(self):
         return "%s, %s" % (self.nome, self.uf)
-
-def addslug(instance, **kwargs):
-    if not instance.slug:
-        instance.slug = slugify(instance.nome + ", " + instance.uf.sigla)