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

Question: does User.update_some() update the values for all users in db? #35

Closed
tracey-le opened this issue Jan 25, 2017 · 5 comments
Closed
Labels

Comments

@tracey-le
Copy link
Collaborator

tracey-le commented Jan 25, 2017

(Not really an issue or idea, just to keep track of something)

I'll look around later, but I thought it would be like User.update() which does only for certain user

How do I update for a specific user? I thought we were using update_some but that does for all, so I'm just gonna use User.update() for time being

@tracey-le tracey-le changed the title Does User.update_some(**kwargs) update the values for all users in db? Does User.update_some() update the values for all users in db? Jan 25, 2017
@tracey-le tracey-le changed the title Does User.update_some() update the values for all users in db? Question: does User.update_some() update the values for all users in db? Jan 25, 2017
@ninjaprawn
Copy link
Collaborator

This has been replaced in #25. In that you will be able to directly set the properties of a User instance, and that will update the appropriate entry in the database.

@tracey-le
Copy link
Collaborator Author

tracey-le commented Jan 25, 2017

I also have another question,

  • how to set default comments for posts to be an empty list when you create it

cos at the moment it isn't. but maybe I tampered with something. so this is more a todo for myself to look at/keep track of

edit: this is now new issue — somehow on my branch, when I make a new post, a Comment object is created for it, but you can't even access its properties anyway because its like a NoneType or something 😕

I might make separate branch and commit so I can share and keep track of changes

what ill do next: try putting in post.all_comments() and see what comes out immediately after I create the post

(gonna leave for another time, right now —> 😴)

@tracey-le
Copy link
Collaborator Author

@ninjaprawn ohhh thank you so much, now I realise how helpful #25 is going to be 😂 awesome of you to want to make db easier to use!

@tracey-le
Copy link
Collaborator Author

tracey-le commented Jan 25, 2017

I am editing the files quite a bit too...so probably will be merge conflicts :]

@tracey-le
Copy link
Collaborator Author

tracey-le commented Jan 28, 2017

my question has been answered so I shall close this for now ☺️

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

No branches or pull requests

2 participants