'NoneType' object has no attribute 'get' error using SQLAlchemy
- by Az
I've been trying to map an object to a database using SQLAlchemy but have run into a snag.
Version info if handy: [OS: Mac OSX 10.5.8 | Python: 2.6.4 | SQLAlchemy: 0.5.8]
The class I'm going to map:
class Student(object):
def __init__(self, name, id):
self.id = id
self.name = name
self.preferences =…