past3d/pastebin/forms.py

9 lines
185 B
Python

from django.forms import ModelForm
from models import Geometry
class GeometryForm(ModelForm):
class Meta:
model = Geometry
fields = ['name', 'description', 'file', 'sourcefile']