(self, owner)
return project
Used to save on creation using custom function.
Used to save on creation using custom function.
Used to save on creation using custom function .
def custom_save(self, owner):
        """Used to save on creation using custom function."""
        name = self.cleaned_data["name"]
        text = self.cleaned_data["text"]
        stream = self.cleaned_data["image"]

        project = auth.create_project(user=owner, name=name, text=text, stream=stream)
        project.save()

        return project
def custom_save ( self , owner ) : name = self . cleaned_data [ "name" ] text = self . cleaned_data [ "text" ] stream = self . cleaned_data [ "image" ] project = auth . create_project ( user = owner , name = name , text = text , stream = stream ) project . save ( ) return project