from django.db import models
class jaga(models.Model):
user_name=models.CharField(max_length=50,verbose_name='Username')
password =models.ForeignKey(max_length=50, verbose_name='pwd')
def __unicode__(self):
return(self.user_name, self.password)
抛出的错误是,
TypeError: __init__() takes at least 2 arguments (1 given)
我哪里出错了?