Hello,
You should substitute 'subgallery_set' to 'subGallery_set' (different in
case) or specify a related_name [1] .
Regards
[1]
http://docs.djangoproject.com/en/dev/topics/db/queries/#many-to-many-relationships
--
You received this message because you are subscribed to the Google Groups
Hi community
I have two models in two apps,
first named newsItem
from django.db import models
from datetime import datetime
class newsItem(models.Model):
pubDate = models.DateTimeField('date
published',default=datetime.now())
author = models.CharField(max_length=20, default="author")
2 matches
Mail list logo