<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _create_badges(self):
 """ Creates badges. """

        rn = RandomNicknames()

        for name in rn.random_nicks(count=20):
            slug = slugify(name)
            badge = Badge.objects.create(
                name=name,
                slug=slug,
                description='Lorem ipsum dolor sit amet, consectetur adipisicing elit')
            logger.info('Created badge: %s', badge.name)