to make it simple, i have this in models.py
class Photo(models.Model):
title_hr = models.CharField('(hr)', max_length=255)
title_en = models.CharField('(en)', max_length=255)
img = FileBrowseField(max_length=200, initial_directory="",...)
class PhotoSetPhotoItem(models.Model):
order = models.IntegerField(blank = True, null = True)
photo_item = models.ForeignKey('Photo', related_name='photoitem')
photo_item_name = str(photo_item.img)
how can i relate to 'img' attribute of 'Photo' class in
'PhotoSetPhotoItem' class?
why is this not working?
photo_item_name = str(photo_item.img)
tnx!
vedran
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---