instance argument in django code example
Example 1: django model form
class YourForm(ModelForm):
class Meta:
model = YourModel
fields = ['pub_date', 'headline', 'content', 'reporter']
Example 2: .save() in django
>>> one_entry = Entry.objects.get(pk=1)