Python Decorator

I am getting this error:
File “/”, line 13, in Item
NameError: name ‘permalink’ is not defined

class Item(models.Model):
        name = models.CharField(max_length=250)
        description = models.TextField()

        class Meta:
                order = ['name']

        def __unicode__(self):

        def get_absolute_url(self):
                return ('item_detail', None, {'object_id' :})

That’s the code, any clue why that is happening?

Never mind, it’s from django if anybody else has this problem
and you need to make @models.permalink