Caveat to omitting `self` in Model method callsI wanted to add a caveat to something I stated in a previous post about leaving
selfout when calling methods from inside other methods in a model. This WILL give you problems if you are trying to assign values to a Model attribute.
For example, doing this:
name = "Steve"
All this is doing is setting a local variable called
nameequal to "Steve." If your Model has an attribute called
nameand you want to set it, you have to use
self.name = "Steve"
# Oh, and don't forget to save!