Re: How to check for a specific field change in a model?

2013-04-18 Thread Lachlan Musicman
There is actually, via a third party app that makes it all dead simple, it's called django-model-utils and is available here: https://github.com/carljm/django-model-utils Credit where it's due, I discovered this wonderful module via PyDanny and Audrey's Two Scoops book. Cheers L. On 19 April 20

Re: How to check for a specific field change in a model?

2013-04-18 Thread akaariai
On 18 huhti, 20:34, deepankar bajpeyi wrote: > I have my models.py : > > class Hotel(models.Model): >     name = models.CharField(max_length=20) >     currency = models.ForeignKey(Currency) > > class Currency(models.Mode): >     code = models.CharField(max_length=3) >     name = models.CharField(m

How to check for a specific field change in a model?

2013-04-18 Thread deepankar bajpeyi
> > I have my models.py : > > class Hotel(models.Model): > name = models.CharField(max_length=20) > currency = models.ForeignKey(Currency) > > class Currency(models.Mode): > code = models.CharField(max_length=3) > name = models.CharField(max_length=10) > > > Whenever the currency field in hotel

How to check for a specific field change in a model?

2013-04-18 Thread deepankar bajpeyi
I have my models.py : class Hotel(models.Model): name = models.CharField(max_length=20) currency = models.ForeignKey(Currency) class Currency(models.Mode): code = models.CharField(max_length=3) name = models.CharField(max_length=10) Whenever the currency field in hotel is chang