Im using flask with sqlalchemy.
I have a Model that is defined as such:
class Employee(db.Model):
id = Column(Integer)
class = Column(Text) #Can I do this? I need a field named 'class'.
If not, then how can I define variables in python that are the same as keywords?
classis a reserved word. You can name itclass_if you want, that's what , e.g.,beautifulSoupdoes.klassis an alternative.