You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alexs-air:Code alexlatchford$ python test.py
Traceback (most recent call last):
File "test.py", line 13, in <module>
class Extension(BaseModel):
File "/Library/Python/2.7/site-packages/peewee.py", line 2990, in __new__
cls._meta.prepared()
File "/Library/Python/2.7/site-packages/peewee.py", line 2861, in prepared
field = self.fields[clause.lstrip('-')]
AttributeError: 'DateTimeField' object has no attribute 'lstrip'
Sorry I haven't had time to investigate it and find a patch, I'll see what I can do if this really annoys me. I'm just putting the order_by declarations on the sub-classes instead of the parent :)
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
Thanks for reporting this -- yes, peewee replaces the order_by string with a clause, but this is acting up in the chlid-classes. I will get a fix out soon.
Hi Charles,
I think this example should be valid but is having difficulties:
Gives the following error:
Sorry I haven't had time to investigate it and find a patch, I'll see what I can do if this really annoys me. I'm just putting the order_by declarations on the sub-classes instead of the parent :)
Thanks,
Alex
The text was updated successfully, but these errors were encountered: