Support for moving a model between two Django apps #24686

22 views
Skip to first unread message

Mike Dewhirst

unread,
Jun 3, 2021, 8:37:53 PM6/3/21
to Django users
I can see a ticket https://code.djangoproject.com/ticket/24686 which
would likely solve my current need to merge two apps.

Is the code OK to try out?

Happy to test it.

Cheers

Mike

--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


OpenPGP_signature

lalit suthar

unread,
Jun 4, 2021, 12:28:20 AM6/4/21
to Django users
We had a similar problem and we resolved it by moving all the models into a separate internal python package. 
We can have a separate app in our django project also for writing models only and all other apps import models from there.

Mike Dewhirst

unread,
Jun 4, 2021, 2:12:18 AM6/4/21
to django...@googlegroups.com
On 4/06/2021 2:28 pm, lalit suthar wrote:
> We had a similar problem and we resolved it by moving all the models
> into a separate internal python package.
> We can have a separate app in our django project also for writing
> models only and all other apps import models from there.

Interesting.

What does the main menu of the Admin look like?


>
> On Friday, 4 June 2021 at 06:07:53 UTC+5:30 Mike Dewhirst wrote:
>
> I can see a ticket https://code.djangoproject.com/ticket/24686
> <https://code.djangoproject.com/ticket/24686> which
> would likely solve my current need to merge two apps.
>
> Is the code OK to try out?
>
> Happy to test it.
>
> Cheers
>
> Mike
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature

Lalit Suthar

unread,
Jun 7, 2021, 8:38:48 AM6/7/21
to django...@googlegroups.com
It does look long and weird but we hardly visit /admin since we do most of the operations from python manage.py shell

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bf3f0499-21e8-3a05-3c01-6c02d2b7b603%40dewhirst.com.au.

Mike Dewhirst

unread,
Jun 7, 2021, 10:11:20 AM6/7/21
to django...@googlegroups.com
Ok - fair enough. On the other hand we do use the Admin extensively and because we made a mistake during design which we would like to fix, we want to move a couple of models from one app to another.

Ticket #24686 looks brilliant and might be implemented in the dev version of Django.

Maybe I'll give it a try.

Cheers

Mike

--
(Unsigned mail  from my phone)

Lalit Suthar

unread,
Jun 8, 2021, 12:58:15 AM6/8/21
to django...@googlegroups.com
oh great, good luck with that :D 

cheers! 

Reply all
Reply to author
Forward
0 new messages