On Jul 16, 2009, at 5:16 AM, Viacheslav Chumushuk wrote:
>
> class Book(models.Model):
>author = models.ForeignKey(Author)
>title = models.CharField(max_length=100)
>
> All that I need is edit some book by primary key.
Just make a forms.ModelForm for your Book model. The class Meta will
Hello.
I have one problem with forms, which I can't resolve. I was looking at
official documentation,
searching in web, but didn't found solution. So, problem is next.
I have two models:
class Author(models.Model):
name = models.CharField(max_length=100)
class Book(models.Model):
author
2 matches
Mail list logo