def create_new(name, version, path): pub = models.Publisher() pub.name = name pub.version = version pub.date = datetime.datetime.now() pub.path = path pub.save()