Write your forwards methods here.

def forwards(self, orm):
        "Write your forwards methods here."
        # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
        for category in Category.objects.all():
            category.slug = category._generate_slug()
            category.save()