Closed GoogleCodeExporter closed 9 years ago
What steps will reproduce the problem? 1. install last Django 2. run django_sample/manage.py syncdb What is the expected output? What do you see instead? TypeError: db_type() got an unexpected keyword argument 'connection' Simple stupid fix: diff -r 1ebf6bc50970 oauth2client/django_orm.py --- a/oauth2client/django_orm.py Mon Apr 11 11:33:42 2011 -0400 +++ b/oauth2client/django_orm.py Fri Apr 15 01:03:05 2011 +0400 @@ -31,7 +31,7 @@ __metaclass__ = models.SubfieldBase - def db_type(self): + def db_type(self, connection=None): return 'VARCHAR' def to_python(self, value): @@ -49,7 +49,7 @@ __metaclass__ = models.SubfieldBase - def db_type(self): + def db_type(self, connection=None): return 'VARCHAR' def to_python(self, value):
Original issue reported on code.google.com by maxim.or...@gmail.com on 14 Apr 2011 at 9:05
maxim.or...@gmail.com
Fixed in 280c5bbb8456
Original comment by jcgregorio@google.com on 3 May 2011 at 12:47
jcgregorio@google.com
Original issue reported on code.google.com by
maxim.or...@gmail.com
on 14 Apr 2011 at 9:05