I just saw the source of all my problems.

This is the code for the Article class:

class Article(models.Model):
   """This class defines an Article, with links to:
   - a Magazine,
   - a Section (which depends on the Magazine), and
   - an Issue (which also depends on the Magazine)"""

   def __str__(self):
      return self.nicetitle
   class Admin:
      pass

   title = models.CharField(maxlength=40, core=True)
   nicetitle = models.SlugField(prepopulate_from=('title'))
   magazine = models.ForeignKey(Magazine, edit_inline=False)

   # Hard part
   validsections = # How do I refer to the value (i.e., name or id) of
the magazine variable created right above?

Cheers


--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to