Martin Brochhaus

Results 13 issues of Martin Brochhaus

something like this: ``` class ProductSizeType(DjangoObjectType): class Meta: model = models.ProductSize interfaces = (graphene.Node, ) local_fields = { 'pk': graphene.Field(graphene.Int), } def resolve_pk(self, args, context, info): return self.pk ```

Something like this: ``` from graphene.test import Client c = Client(root_schema) resp = c.execute(''' { allSizesForProduct(productPk: 1) { pk, inCm } } ''') res = resp['data']['allSizesForProduct'][0] self.assertEqual(res['pk'], 1, msg=( 'Should...

I'm getting this error in a large Django codebase with hundreds of tests. I believe this happens because all instances that mixer creates are somehow cached and after a while...

I just downloaded and read the book. A very nice read so far! Many thanks for that! Can't wait to read to remaining chapters. However I think that something is...

do I understand this correctly? With this solution it would not be possible to have {% trans "foo" %} tags in the icanhaz templates since those are no longer being...

I am using the following settings: ``` DEFAULT_FILE_STORAGE = 'myproject.custom_storages.MediaStorage' # My custom storage uses `storages.backends.s3boto3.S3Boto3Storage` THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE AWS_QUERYSTRING_AUTH = False AWS_S3_FILE_OVERWRITE = False ``` I have a signal...

I just downloaded this application and tried to use it with django-cms Somehow the images always were outputted as In cms_plugins.py we have: context.update({ 'picture':instance, In the image.html template we...

As far as I can see simplevariations will not work when the user defined a custom model for the product via SHOP_PRODUCT_MODEL?