Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

(django)inorder to provide a human readable name for the model.

def __str__(self):
    return self.field_name
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #provide #human #readable
ADD COMMENT
Topic
Name
6+3 =