How to save one field value from a model to another model field

2016-08-16 Thread Md. Ohiduzzaman
down votefavorite I designed two models: one model for storing Sitting date and another mode for storing Shifting date. Two model are linked by foreign key. Here is my two models: class Sitting(models.Model):

Re: How to save one field value from a model to another model field

2016-08-17 Thread Vinicius Assef
Your method get_shift_date() has a syntax error. Your save() method has identation problem. Please correct them and send us the right code. On Tuesday, 16 August 2016 14:49:32 UTC-3, Md. Ohiduzzaman wrote: > > > > down votefavorite >