Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cbv uk django

def form_valid(self, form):
    """If the form is valid, save the associated model."""
    self.object = form.save()
    return super().form_valid(form)
Source by ccbv.co.uk #
 
PREVIOUS NEXT
Tagged: #cbv #uk #django
ADD COMMENT
Topic
Name
5+1 =