import os.path
from django import forms
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
import mutagen
from django.utils.encoding import force_bytes
class AudiobookForm(forms.ModelForm):
class Meta:
model = Audiobook
+ exclude = []
def save(self, commit=True, path=None):
""" Performs normal save, with given file as an source audiobook.