-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

El 05/11/13 13:14, Aamu Padi escribió:
> I think abstract models is what I am after. But, I also want to get
> 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???

Hello Aamu :-)

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.

- -- 
Gonzalo Delgado
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlJ5JpgACgkQzbfdFL5JoUnlKAD+LljmaN7XpFTdQtcZx4i9e43c
7hAZ8Y2XOv0tH5TljKcA+wQdh5fNUmk71laONL1bWBWizncxe2PGFO/+QsLyOP+e
=AI7P
-----END PGP SIGNATURE-----

-- 
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+unsubscr...@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/52792698.6040509%40gonzalodelgado.com.ar.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to