Ekhel

forms.py

Jun 10th, 2020
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from django.forms import ModelForm
  2. from .models import Kategori
  3.  
  4. class PostKategori(ModelForm):
  5.     class Meta:
  6.         model = Kategori
  7.         fields = ['nama_kategori','deskripsi']
Advertisement
Add Comment
Please, Sign In to add comment