Re: same field in two classes

2015-08-03 Thread Javier Guerra Giraldez
On Sun, Aug 2, 2015 at 5:54 PM, Robin Lery wrote: > You can use inheritance. Or content type. Or use signals to get the value of > salary from one model and save it to another model. or choose the right place to store it and don't duplicate information. -- Javier -- You received this messag

Re: same field in two classes

2015-08-02 Thread Robin Lery
You can use inheritance. Or content type. Or use signals to get the value of salary from one model and save it to another model. On 2 Aug 2015 23:38, "Alex Heyden" wrote: > Sorry, I think there might be a bit of a language barrier. What do you > mean by "take the value of employee salary to payro

Re: same field in two classes

2015-08-02 Thread Alex Heyden
Sorry, I think there might be a bit of a language barrier. What do you mean by "take the value of employee salary to payroll salary?" On Sun, Aug 2, 2015 at 12:12 PM, Giovanny Vizcaya wrote: > Good day,i'm new in django and i'm doing a project, i have a class > "Employee" with atribute "salary",

same field in two classes

2015-08-02 Thread Giovanny Vizcaya
Good day,i'm new in django and i'm doing a project, i have a class "Employee" with atribute "salary", same time i have class "Payroll" with atribute "salary", how can i take the value of employee salary to payroll salary? thank you in advance for answers -- You received this message because yo