Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/d/a/daisyproducer-HEAD/abacus_import/management/commands/importABACUS.py   daisyproducer(Download)
        content = ContentFile(contentString)
        version = Version.objects.create(
            comment = "Initial version created from meta data",
            document = document,
            created_by = user)
        content = ContentFile(contentString)
        version = Version.objects.create(
            comment = "Updated version due to meta data change",
            document = document,
            created_by = user)
    content = ContentFile(contentString)
    version = Version.objects.create(
        comment = "Updated version due fetch from archive",
        document = document,
        created_by = user)

src/d/a/daisyproducer-HEAD/documents/views/manage.py   daisyproducer(Download)
            content = ContentFile(contentString)
            version = Version.objects.create(
                comment = "Initial version created from meta data",
                document = instance,
                created_by = self.user)
            content = ContentFile(contentString)
            version = Version.objects.create(
                comment = "Updated version due to meta data change",
                document = instance,
                created_by = self.user)
            content = ContentFile(contentString)
            version = Version.objects.create(
                comment = "Initial version created from meta data",
                document = instance,
                created_by = request.user)

src/d/a/daisyproducer-HEAD/documents/views/todo.py   daisyproducer(Download)
    # can save the content file under /document_id/versions/version_id
    version = Version.objects.create(
        comment=form.cleaned_data['comment'], 
        document=document,
        created_by=request.user)

src/d/a/daisyproducer-HEAD/documents/forms.py   daisyproducer(Download)
        content = ContentFile(contentString.encode("utf-8"))
        version = Version.objects.create(
            comment = self.cleaned_data['comment'],
            document = self.document,
            created_by = self.user)

src/d/a/daisyproducer-HEAD/documents/test/functional/manage.py   daisyproducer(Download)
        versionFile = File(open(os.path.join(TEST_DATA_DIR, 'test.xml')))
        version = Version.objects.create(
            comment = "testing 123",
            document = document,
            created_by = user)

src/d/a/daisyproducer-HEAD/documents/test/functional/browse.py   daisyproducer(Download)
        content = ContentFile(contentString)
        v = Version.objects.create(
            comment = "Initial version created from meta data",
            document = self.document,
            created_by=user)