Re: How to add objects from one class to another
Ok, I guess, I will try that. Thank you!!!
On Tue, Nov 5, 2013 at 10:40 PM, Gonzalo Delgado <mail@gonzalodelgado.com.ar> wrote:
-----BEGIN PGP SIGNED MESSAGE-----El 05/11/13 13:14, Aamu Padi escribió:
Hash: SHA256
> I think abstract models is what I am after. But, I also want to getHello Aamu :-)
> the latest photo by that user, be that a profile pic or background
> pic. Can I use the abstract base model, ie the Image model to
> atleast get the latest photo by [-pub_date], even though I wont
> save anything in it???
Sadly, you won't be able to retrieve data in any way using the
abstract model class (see
https://docs.djangoproject.com/en/1.5/topics/db/models/#abstract-base-classes
), but django-polymorphic can definitely do that.
iF4EAREIAAYFAlJ5JpgACgkQzbfdFL5JoUnlKAD+LljmaN7XpFTdQtcZx4i9e43c
- --
Gonzalo Delgado
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
7hAZ8Y2XOv0tH5TljKcA+wQdh5fNUmk71laONL1bWBWizncxe2PGFO/+QsLyOP+e
=AI7P
-----END PGP SIGNATURE-----To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52792698.6040509%40gonzalodelgado.com.ar.
--
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 http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHSNPWsgtvbC574jh25rtFqnf92bNrA%3DmpDyniAYavaHO3jXjw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home