#
from django.db.models import Count
from django import forms
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django.conf import settings
from slugify import slugify
from .constants import MASTERS
class Meta:
model = Book
- exclude = ['parent', 'parent_number', 'project']
+ fields = [
+ 'title', 'slug', 'public', 'gallery'
+ ]
def __init__(self, *args, **kwargs):
super(DocumentCreateForm, self).__init__(*args, **kwargs)
class Meta:
model = Book
- exclude = ['project']
+ exclude = ['project', 'cover', 'legimi_id', 'woblink_id']
def __init__(self, *args, **kwargs):
ret = super(BookForm, self).__init__(*args, **kwargs)