update I have moved all the classes into the one model, image_sets   ...
from django.db import models
from smartpages.models import SmartPage

POSITIONCHOICES = [
    ('1', 'Top'),
    ('2', 'Bottom')
    ]

class Set(models.Model):
    assigned_page = models.ForeignKey(SmartPage, help_text='The smartpage
this set is assigned to')
    position = models.CharField(choices=POSITIONCHOICES, max_length=1)
    name = models.CharField(max_length=50, help_text='An identifying name,
like the name of the smartpage')

    def __unicode__(self):
        return self.name

class Image(models.Model):
    page = models.ForeignKey(Set)
    image = models.ImageField(upload_to='page_sets')

class HeadSet(models.Model):
    assigned_page = models.ForeignKey(SmartPage, help_text='The smartpage
this set is assigned to')
    name = models.CharField(max_length=50, help_text='An identifying name,
like the name of the smartpage')

    def __unicode__(self):
        return self.name

class HeadImage(models.Model):
    page = models.ForeignKey(HeadSet)
    image = models.ImageField(upload_to='head_sets')

The problem still persists!
shelling it still shows

imsettop and imsetbottrom return image_set.all()
headset doesnt, yet the code to get all three are almost identical




-- 
View this message in context: 
http://old.nabble.com/no-return-from-image_set.all-yet-code-almost-identical-tp32723239p32725569.html
Sent from the django-users mailing list archive at Nabble.com.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to