publishers_2.py 187 B

12345678
  1. def create_new(name, version, path):
  2. pub = models.Publisher()
  3. pub.name = name
  4. pub.version = version
  5. pub.date = datetime.datetime.now()
  6. pub.path = path
  7. pub.save()