[Django]-Is save() called implicitly when calling create in django?

39👍

create() will automatically save, so even if you fix your error – you will still have to make sure the arguments to create fulfill the database requirements to save a record.

0👍

You forgot to put self in your manager

class FooManager(models.Manager):
    def create_foo(self, name):
        return self.create(foo_name = name)

Leave a comment