Did I find the right examples for you? yes no

All Samples(4)  |  Call(1)  |  Derive(1)  |  Import(2)

src/n/e/newfies-dialer-HEAD/newfies/dialer_audio/forms.py   newfies-dialer(Download)
#
 
from audiofield.forms import CustomerAudioFileForm
from mod_utils.forms import SaveUserModelForm, common_submit_buttons
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Fieldset, Div
 
 
class DialerAudioFileForm(CustomerAudioFileForm, SaveUserModelForm):

src/d/j/django-audiofield-0.6.1/audiofield/tests.py   django-audiofield(Download)
from common.utils import BaseAuthenticatedClient
from audiofield.models import AudioFile
from audiofield.forms import CustomerAudioFileForm
 
 
    def test_audio_form(self):
        form = CustomerAudioFileForm(instance=self.audiofile)
 
        self.assertTrue(isinstance(form.instance, AudioFile))
        self.assertEqual(form.instance.pk, self.audiofile.pk)