The thing is in my app, everything would be done on runtime. The idea is to 
have a minimal app "base" and once you're on in, you'd have a list of 
applications that you can install. So If I have "base" and "Employee", and 
then I want to install "Fleet", only migrations from Fleet would have to be 
done. The thing is it would be possible to install more apps only 1 by 1 ..

Le jeudi 30 janvier 2020 19:29:05 UTC+1, Abhijeet Viswa a écrit :
>
> Each model represents one table on the DB. Modifying it in two different 
> apps (hence creating two different sets of migrations) might result in 
> breaking changes. What if one migration affects something that is directly 
> referenced by the other app, but wasn't updated?
>
> Also, what would the potential benefits be (other than reduction of number 
> of tables) to such a type of inheritance? Couldn't the same be done with 
> another table and a select related? The only difference would be a in 
> prefetch_related call (your inheritance wouldn't require one). However, 
> doing something that like that means the Employee app knows about (and 
> relies upon) this backward relation to the Vehicle model (and hence the 2nd 
> app itself).
>
> On Thu, 30 Jan 2020 at 23:07, LBris <laurent...@gmail.com <javascript:>> 
> wrote:
>
>> I do not understand. Could you explain to me what it would break the 
>> database and how ?
>>
>> Le jeudi 30 janvier 2020 17:37:22 UTC+1, Abhijeet Viswa a écrit :
>>>
>>> I think this would needlessly complicate the entire migration process. 
>>> Two different app migrations (and possibly even more) would have be 
>>> considered and executed in sequence to prevent anything breaking on the 
>>> database. 
>>>
>>> On Thu, 30 Jan 2020 at 22:00, LBris <laurent...@gmail.com> 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> 
>>>> 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.
>>>>> 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-d...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-developers/CAJi3W9g2qa%2Bd1cXJNO2NJWfDpFTUHrqX2e%2B%2BS71KH2Wv9BeUuw%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-developers/CAJi3W9g2qa%2Bd1cXJNO2NJWfDpFTUHrqX2e%2B%2BS71KH2Wv9BeUuw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Abhijeet
>>>
>> -- 
>> 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/f58e79a0-6494-4a0a-ace8-e2cc31c799da%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/f58e79a0-6494-4a0a-ace8-e2cc31c799da%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Abhijeet
>

-- 
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/1d0fa4ea-6e0a-4dd7-992a-f5a1431ead89%40googlegroups.com.

Reply via email to