Re: Creating one model row from another model save method

2011-03-03 Thread werefr0g
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

Creating one model row from another model save method

2011-03-02 Thread Kirill Gorin
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")