# -*- coding: utf-8 -*-
from django import forms 
from app.models import *

class LivroForm(forms.ModelForm):
    class Meta:
        model = Livro
        fields = ['titulo', 'ano_publicacao', 'autor']

class AutorForm(forms.ModelForm):
    class Meta:
        model = Autor
        fields = ['nome',]
e687ed7ac8ef779cf18ed5ff3517d850ac88d4fb
<mask token>

<mask token>


class AutorForm(forms.ModelForm):


    class Meta:
        model = Autor
        fields = ['nome']

<mask token>


class LivroForm(forms.ModelForm):


    class Meta:
        model = Livro
        fields = ['titulo', 'ano_publicacao', 'autor']


class AutorForm(forms.ModelForm):


    class Meta:
        model = Autor
        fields = ['nome']

from django import forms
from app.models import *


class LivroForm(forms.ModelForm):


    class Meta:
        model = Livro
        fields = ['titulo', 'ano_publicacao', 'autor']


class AutorForm(forms.ModelForm):


    class Meta:
        model = Autor
        fields = ['nome']

# -*- coding: utf-8 -*-
from django import forms 
from app.models import *

class LivroForm(forms.ModelForm):
    class Meta:
        model = Livro
        fields = ['titulo', 'ano_publicacao', 'autor']

class AutorForm(forms.ModelForm):
    class Meta:
        model = Autor
        fields = ['nome',]