Re: json serializing without certain fields
this had me stumped. thanks for the fix G On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote: > > > > > Hi > > how can I get JSON out of my Django object without having certain > > fields in there for obvious reasons? > > I found solutions like serializers.serialize("json", > > Something.objects.all(), fields='myfield' ) > > which do not work, there's also a ticket on > > thathttp://code.djangoproject.com/ticket/3466 > > Why isn't that solved by now and how can I get it to work the way I > > want? > > For whatever reason, the triage team hadn't promoted that ticket to > 'ready for checkin' status. That doesn't mean the ticket wasn't ready > for checkin - just that nobody had given it enough attention as yet. > > Like Malcolm said, we're all volunteers here. Complaining about the > speed of the bug fixing process doesn't solve the problem. If you want > things to move faster, feel free to help out. > > However, that said, now that we are aware of the problem, it was an > easy fix, committed as [5409]. > > Yours, > Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: json serializing without certain fields
Sorry for being a littly bit offensive. Thanks for your replies and for commiting the patches, works like a charm now. On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote: > > > > > Hi > > how can I get JSON out of my Django object without having certain > > fields in there for obvious reasons? > > I found solutions like serializers.serialize("json", > > Something.objects.all(), fields='myfield' ) > > which do not work, there's also a ticket on > > thathttp://code.djangoproject.com/ticket/3466 > > Why isn't that solved by now and how can I get it to work the way I > > want? > > For whatever reason, the triage team hadn't promoted that ticket to > 'ready for checkin' status. That doesn't mean the ticket wasn't ready > for checkin - just that nobody had given it enough attention as yet. > > Like Malcolm said, we're all volunteers here. Complaining about the > speed of the bug fixing process doesn't solve the problem. If you want > things to move faster, feel free to help out. > > However, that said, now that we are aware of the problem, it was an > easy fix, committed as [5409]. > > Yours, > Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: json serializing without certain fields
On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote: > > Hi > how can I get JSON out of my Django object without having certain > fields in there for obvious reasons? > I found solutions like serializers.serialize("json", > Something.objects.all(), fields='myfield' ) > which do not work, there's also a ticket on that > http://code.djangoproject.com/ticket/3466 > Why isn't that solved by now and how can I get it to work the way I > want? For whatever reason, the triage team hadn't promoted that ticket to 'ready for checkin' status. That doesn't mean the ticket wasn't ready for checkin - just that nobody had given it enough attention as yet. Like Malcolm said, we're all volunteers here. Complaining about the speed of the bug fixing process doesn't solve the problem. If you want things to move faster, feel free to help out. However, that said, now that we are aware of the problem, it was an easy fix, committed as [5409]. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: json serializing without certain fields
web-junkie wrote: > Hi > how can I get JSON out of my Django object without having certain > fields in there for obvious reasons? > I found solutions like serializers.serialize("json", > Something.objects.all(), fields='myfield' ) > which do not work, there's also a ticket on that > http://code.djangoproject.com/ticket/3466 > Why isn't that solved by now and how can I get it to work the way I > want? you can always write your own serializer... check how the json one is done... gabor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: json serializing without certain fields
On Fri, 2007-06-01 at 05:19 -0700, web-junkie wrote: > Hi > how can I get JSON out of my Django object without having certain > fields in there for obvious reasons? > I found solutions like serializers.serialize("json", > Something.objects.all(), fields='myfield' ) > which do not work, there's also a ticket on that > http://code.djangoproject.com/ticket/3466 > Why isn't that solved by now and how can I get it to work the way I > want? You aren't actually explaining what error you are seeing from the solution you tried, but I gather you are stumbling into #3466 from what you say next. Is that correct? If there's an open ticket showing that what you want to do is a known bug, then that is why it doesn't work. Asking "why hasn't that been fixed by now" is not particularly good form. There are a lot of open tickets. We try to get to them all in due course. I haven't looked at that one recently; it looks like it might be ready to apply once it's had a bit of a review. A little patience on your part will go a long way here. If you are desperate for a solution, apply the patches from that ticket and see if the fix works for you. Regards, Malcolm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
json serializing without certain fields
Hi how can I get JSON out of my Django object without having certain fields in there for obvious reasons? I found solutions like serializers.serialize("json", Something.objects.all(), fields='myfield' ) which do not work, there's also a ticket on that http://code.djangoproject.com/ticket/3466 Why isn't that solved by now and how can I get it to work the way I want? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---