models.Model.create({__name__: "todo.models.Task",title: models.CharField({ max_length: 200 }),is_complete: models.BooleanField({ 'default': false }),update: function(kwargs){if('is_complete' in kwargs && kwargs['is_complete']) {this.elements().addClass('done');} else if('is_complete' in kwargs && !kwargs['is_complete']) {this.elements().removeClass('done');}return this._super(kwargs);}});
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/nXspKySFAhQJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
frankly these are not questions to be asked of an open source project.
--
regards
Kenneth Gonsalves
I remember a guy, his name has slipped my mind, who released a kernel
and mentioning that it most probably would not be useful as better ones
were around, but he did so because he felt that someone, somewhere *may*
find it of interest.
--
regards
Kenneth Gonsalves
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
For instance, if you are using django-piston or django-tastypie to create a nice public API, you can create a db backend to match your public api, however you wanna create it.
Using the models you can do stuff like:
MyModel.objects.filter({ id__gte: 10 }).using('nodejs-remote-backend').all()
and you get all the data you want from that db backend or you can use a db router to make sure all the requests for that model are redirected to that specific db backend.
Thanks for the support :)
Davide
Hey,is no one is really interested in helping in this project?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kQ_GesNzV7wJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Gerald Klein DBA
Linux registered user #548580
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>
>
>
>
> --
>
> Gerald Klein DBA
>
> Cont...@geraldklein.com
>
> www.geraldklein.com
>
> j...@zognet.com
>
> 708-599-0352
>
>
> Linux registered user #548580
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/wuaJSGzRuaYJ.
To unsubscribe from this group, send email to django-users...@googlegroups.com.