Nick Sarbicki
Nick Sarbicki
Yep that is the crux of the PR. Interesting idea on having type specific kwargs. Definitely possible, question is what would be the best API for this? Do we want...
PR made: https://github.com/apirobot/django-rest-polymorphic/pull/34
I have been bitten by this this week. And agree with the above - it doesn't feel like expected behaviour - nor is it clear what is happening immediately. I'm...
FYI I've worked around this for now like so: ```python from rest_framework.renderers import TemplateHTMLRenderer class MyHTMLRenderer(TemplateHTMLRenderer): def get_template_context(self, *args, **kwargs): context = super().get_template_context(*args, **kwargs) if isinstance(context, list): context = {"items":...
So the implementation explained by @bryanhelmig is exactly the kind of thing I was thinking of implementing. I'm not sure I can see a way of doing it without adding...
@bryanhelmig I meant on the server side :wink:. In which case it would have to be a table I reckon. So my proposition for this would be: 1. An `AbstractSecret`...
Actually a better alternative to the `post_save` signal would be to generate the secret in the property. Check if it exists first and if it doesn't generate it. That way...