I dont know what to do. new to this web framework please help me out
I get this error:
unbound method save() must be called with DinkProfile instance as first argument (got nothing instead)
My view is:
dinkprofile = DinkProfile
dinkprofile.title = 'owner'
dinkprofile.user = request.user.id
dinkprofile.save()
ModelL:
class DinkProfile(models.Model):
user = models.OneToOneField(auth.models.User)
title = models.CharField(max_length=75)
You are missing parentheses here:
Should be: