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 --- Francis Gulotta wiz...@roborooter.com On Tue, Apr 20, 2010 at 9:55 AM, Odd <o...@her-e-me.com> wrote: > 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 Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.