Hi Django fans,
I'm pretty new to Django so it should be a somewhat dumb question. Here
it goes!
I've created the following model:
class Place(models.Model):
name = models.CharField(maxlength=100)
class Continent(Place):
pass
class Country(Place):
superLocal = models.ForeignKey(Continent)
In the interactive prompt I'm able to create Continents and Countries
and relate them. The data is stored correctly on the database, but if i
try to retrieve a list of continents through the following command:
Continent.objects.all()
it returns an empty list. Also tried the same with Local and Country,
same result. Through the admin interface I can see the stored data.
What am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---