It sounds to me like your data modelling is wrong. You can either have a 
one-to-one table2 acts as an extension of table1, a view that combines 
multiple tables into one "virtual table" or have one table and two models 
that use the table. One, the superset, would be managed, the other would 
only show a subset of the columns

Otherwise you risk adding fields into the subset model and assuming that 
they will be in the superset model which they won't unless you are 
inheriting from it and then overloading the meta.

On Thursday, 30 January 2020 16:30:36 UTC, LBris wrote:
>
> I've never said it isn't saved in database. It is saved but in the table 
> of the employee since hrfleetemployee inherits from employee. It simply 
> adds this field to the table of Employee
>
> Le jeu. 30 janv. 2020 à 5:24 PM, Abhijeet Viswa <abhije...@gmail.com 
> <javascript:>> a écrit :
>
>> How would the fields in HRFleetEmployee be persistent and linked to a 
>> particular Employee or Vehicle without being saved in the database? Or did 
>> I understand your code and request wrong? 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-d...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/CAP1-YrrSo06-gxD1ZdzN0CCPQCm-shdah24H_ZVyLh_rGkU4%3DA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/CAP1-YrrSo06-gxD1ZdzN0CCPQCm-shdah24H_ZVyLh_rGkU4%3DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/eed19926-f9e8-4eb8-b521-ce89b0745aca%40googlegroups.com.

Reply via email to