Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 25, 2008 19:23:54

Vladimir S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

doubts about query


Hi, I am new in this django, but I have already tried a few examples
I found on the web, but I have some doubts and queries:

Given the following classes:

Book class (models.Model):
Models.ForeignKey author = (Author)
Models.ForeignKey publisher = (Editor)
Publicaction = models.DateTimeField = ()
Pages = models.IntegerField pages = ()

Author class (models.Model):
Name = models.CharField (...)
Nationality = models.CharField (...)

Editor class (models.Model):
Name = models.CharField (...)
Country = models.CharField (...)


As could perform the following query:

All books were published between 2005-2007, whose author
Be "Juan Perez" and belongs to a publisher whose country is "Spain"



Atte


Vladi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support