Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Anthony Leontiev
    @aleontiev
    :)
    Remco Wendt
    @shanx
    heya! nice to have a gitter available. I'll be online tomorrow all day :)
    hope to see you guys then. I'm based in Amsterdam btw (CET timezone)
    Anthony Leontiev
    @aleontiev
    hi! we are mostly in California (PST)
    Remco Wendt
    @shanx
    let's see if we have some overlap in your early morning today (that would be our noon)
    I'm online so just ping me when you are
    Tibo Beijen
    @TBeijen
    Hi, colleague of @shanx here.
    Remco Wendt
    @shanx
    it's getting cosy in here :)
    Anthony Leontiev
    @aleontiev
    hey guys
    Anthony Leontiev
    @aleontiev
    noon CET is 3am, not usually on at that time :)
    Anthony Leontiev
    @aleontiev
    but feel free to ask any questions you have and I can get to them as soon as I see them
    Remco Wendt
    @shanx
    yeah understandable :) same here
    Remco Wendt
    @shanx
    well it was more that we are going to make heavy use of dynamic rest in a project on our side. and we hope to have some of our work merged back for others to use, so that it might be good for us to say hello and share some thoughts
    Anthony Leontiev
    @aleontiev
    that sounds great; happy to brainstorm. my availability is usually 9am-6pm Pacific time
    Remco Wendt
    @shanx
    hey guys! just found out that DREST's WithDynamicViewSetMixin does a hard override on renderer_classes: renderer_classes = (JSONRenderer, DynamicBrowsableAPIRenderer) this way the DEFAULT_RENDERER_CLASSES setting of drf is ignored. I understand that DynamicBrowsableAPIRenderer should be swapped with the DREST one in order for the directory support to work. But to me this doesn't seem the best way to do this. In our project we thought we where using the configured UJSON renderer, but we didn't in the end :)
    Yeison Jair Vargas Flórez
    @YeisonVargas
    Hi guys! I'm testing dynamic-rest with Python 3.5.2, Django 1.10 and DRF 3.5.0, so, when I add a field in inherited class serializer from DynamicModelSerializer I get [variable_name] is not a valid field for <class 'main.models.[nameModel]'>
    Any idea what is it about?
    Remco Wendt
    @shanx
    @YeisonVargas does the name of the field in the serializer also exist in the model? Otherwise you need to use the source parameter in the field you are defining to link it to the proper field in your model
    Yeison Jair Vargas Flórez
    @YeisonVargas
    @shanx the name of the field in the serializer doesn't exist in the model, so I added the DynamicRelationField in Serializer but I get that error.
    and the serializer inherits from DynamicModelSerializer like the example.
    EndyKaufman
    @EndyKaufman
    Hi!
    it not work:(
    Asif Saif Uddin
    @auvipy
    hi guys
    is this library a replacement for django-rest-framework-json-api?
    i liked this library
    dynamic-rest
    Tibo Beijen
    @TBeijen
    @auvipy Afaik JSON-API is a spec that looks different from what is implemented in dynamic-rest. There is overlap in concepts though (inclusion/sideloading). Disclaimer: Not author.
    Asif Saif Uddin
    @auvipy
    I see
    thanks
    Brad Hilton
    @bradhilton
    Does DREST support POSTing and PUTing embedded objects?
    Anthony Leontiev
    @aleontiev
    there is currently no support for PUT/POST with embedded relations
    Philipp Kuznetsov
    @pro100filipp

    hello, is there any way to include in model it's subchildren?
    I have:

    class ParentModel(Model):
        pass
    class ChildModel(Model):
        parent = ForeignKey(ParentModel)
    class SubChildModel(Model):
        parent = ForeignKey(ChildModel)

    I want:
    GET /parentmodels/

    [
        { 
            "subchildren" : [
                 <SubChildModel>,
                 <SubChildModel>,
                 ...
             ]
        }
    ]