def create_uniq_name(namespace, name):
        """Returns a name which is unique in given namespace.
        Name is created by incrementing a value."""
        if namespace and name:
            base_name = name
            counter = 0

            while Changelog.objects.filter(
                    namespace=namespace,
                    name=name).exists():
                counter += 1
                name = '{0}{1}'.format(base_name, counter)
        return name