12 lines
262 B
Python
12 lines
262 B
Python
# import form class from django
|
|
from django import forms
|
|
|
|
# import GeeksModel from models.py
|
|
from .models import Album
|
|
|
|
|
|
# create a ModelForm
|
|
class AlbumForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Album
|
|
exclude = ('created_at', 'modified_at')
|