Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model cache being inconsistent when the value is set by id #243

Closed
ricoboni opened this issue Oct 23, 2013 · 1 comment
Closed

Model cache being inconsistent when the value is set by id #243

ricoboni opened this issue Oct 23, 2013 · 1 comment

Comments

@ricoboni
Copy link

Project have a ForeignKeyField referencing Client
The output is from my projects iPython shell

In [1]: p = Project.get(id=581)

In [2]: p.client
Out[2]: <models.Client at 0x1f6d790>

In [3]: p.client.id
Out[3]: 115

In [4]: p.client = 123

In [5]: p.client.id
Out[5]: 115
@coleifer
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants