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
[email protected]


On Tue, Apr 20, 2010 at 9:55 AM, Odd <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to