mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2025-03-12 04:25:47 +03:00
16 lines
332 B
Python
16 lines
332 B
Python
from django import forms
|
|
|
|
from akarpov.files.models import File, Folder
|
|
|
|
|
|
class FileForm(forms.ModelForm):
|
|
class Meta:
|
|
model = File
|
|
fields = ["name", "private", "notify_user_on_view", "description"]
|
|
|
|
|
|
class FolderForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Folder
|
|
fields = ["name", "private"]
|