Keeping track of which user did what

2008-05-16 Thread Chris Farley
Django has that nice "auto_add=True" property you can set on a model's field. I have two fields in my models called "created_at" and "updated_at" that keeps track of each model instance's creation/ modification date. It's incredibly easy. I also want to keep track of which user created/updated ea

Strange cookie problem

2008-05-15 Thread Chris Farley
My Django app needs to read a cookie that is written by a JavaScript script in another part of my website. The JavaScript code that generates the cookie is something like this: document.cookie='ShoppingCart=[7008|2][7120|3]; path=/; domain=mydomain.com'; I can see the cookie and its content from

Re: Forward model references

2008-05-09 Thread Chris Farley
Is it ever. I don't know why I did not see that. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from th

Forward model references

2008-05-09 Thread Chris Farley
I'm trying to model our customers in a Django application, but I'm encountering a problem: Customers can have many CustAddresses One CustAddress is the Customer's primary billing address One CustAddress is the Customer's primary shipping address It's a classic 'chicken and egg' problem. Customer