Wednesday, December 28, 2016

Re: Subclassing Models in non model class

Thanks for the reply. I was trying to understand sql level inheritance difference between Proxy based models and abstract models.

I got it figured out.
Thanks

Regards,
Mudassar

On Wed, Dec 28, 2016 at 4:09 AM, Melvyn Sopacua <m.r.sopacua@gmail.com> wrote:

On Tuesday 27 December 2016 05:51:55 M Hashmi wrote:

 

> I created a model Address like a normal practice below. Now I need to

> create a subclass without using models.Model. But its not letting me

> do because obviously it won't create tables unless I call

> models.Model in class parameters.

>

> Idea is to create a model and use that model with non db reference in

> admin.py. Following is the code:

 

It's quite unclear what you want and why you want it especially. What does this other Address model represent?

--

Melvyn Sopacua

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5208735.ZJ1U0fmsWf%40devstation.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANoUts4rinzvF%2BdHfuN8WKof6CjsXWE4O5w-J-MZoB%3DuGS3N6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment