Re: creating objects in views

2009-05-15 Thread Oleg Oltar
Thanks a lot! I don't know why I missed article variable! Thanks, again! On Thu, May 14, 2009 at 11:23 PM, Gene wrote: > > You may still be able to use the built-in django-comments, as it's > easy to customize (especially if your just adding extra fields). You > can read about it here: > http:

Re: creating objects in views

2009-05-14 Thread Gene
You may still be able to use the built-in django-comments, as it's easy to customize (especially if your just adding extra fields). You can read about it here: http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/#ref-contrib-comments-custom Gene On May 14, 12:59 pm, Oleg Oltar wro

Re: creating objects in views

2009-05-14 Thread Daniel Roseman
On May 14, 5:59 pm, Oleg Oltar wrote: > Well, the problem with built in comments framework is that I need few more > fields in comments. > > What I created is: > > MODEL: > > class Comment(models.Model): >     name = models.CharField(max_length = 30) >     body = models.CharField(max_length = 200

Re: creating objects in views

2009-05-14 Thread Oleg Oltar
Well, the problem with built in comments framework is that I need few more fields in comments. What I created is: MODEL: class Comment(models.Model): name = models.CharField(max_length = 30) body = models.CharField(max_length = 2000) article = models.ForeignKey(Article) def __un

Re: creating objects in views

2009-05-12 Thread Daniel Roseman
On May 12, 10:51 am, Oleg Oltar wrote: > Hi! > I am running small blog-styled information site. Which contains articles > added via admin application > Now I am trying to add possibility to add comments, so I defined a comment > Model (which contains Foreign Key to article object, and few text fi

creating objects in views

2009-05-12 Thread Oleg Oltar
Hi! I am running small blog-styled information site. Which contains articles added via admin application Now I am trying to add possibility to add comments, so I defined a comment Model (which contains Foreign Key to article object, and few text fields), also defined forms. Can you please explain