Hi xunSir, Personally, I can't understand your question.You will have to get some help with english speaking because what you wrote there is merely understandable.
Thank you, -- David On 24-Jan-08, at 12:04 AM, xunSir wrote:
class Person(models.Model): PIN = models.CharField(maxlength=20, primary_key=True) Name = models.CharField(maxlength=20) class Burse(models.Model): PIN = models.ForeignKey(Person) Cash = models.IntegerField() ============================================ With HTML Page: show Burse A person maybe has many Burse: Per query Burse, per query The person by the way, query All Person(guess). May: Per query Burse, query it's Person in cache; If not, query Person in db, and save it to cache. Is it OK ? ============================================ I know a little relation in django's models (ORM). Who can explain them ? Note: Speaking chinese is had best --~--~---------~--~----~------------~-------~--~----~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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature