I'm trying to assign a class name dynamically using a string.
Much like this...
classname='cats'
class classname(peewee.Model):
Peewee doesn't seem to think I should be able to do this and I'm having a lot of trouble finding a way to define the class name dynamically.
Help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…