Since it's not a django field it wont be stored in the database and wont be
persisted between requests. It does seem to be accecpted practice however to
use variables in your classes for your own uses. Your list will be available
to all your own functions and views like you would expect.
-Francis
I have this model:
class MyModel(models.Model):
name = models.CharField(max_length=100)
myList=[]
If I add values to myList, for how long will it be available there? Is
this a bad approach?
Thanks!
Odd-R.
--
You received this message because you are subscribed to the Google Gr
2 matches
Mail list logo