Python Decorator

I am getting this error:
File “/models.py”, line 13, in Item
@permalink
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):
                return self.name

        @permalink
        def get_absolute_url(self):
                return ('item_detail', None, {'object_id' : self.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