add template variable to an external view, without changing the view

2010-12-20 Thread yves_s
Hello I'm using the registration django app and want to have the registration and login form on the same page. When I reuse the auth_login view, the registration form is missing in the context of the template. My quickfix is to copy the original auth login view to my own views. Then I changed the

Re: Chat application in Django

2010-09-01 Thread yves_s
I also looking for realtime messaging for django and found this two links. http://www.clemesha.org/blog/realtime-web-apps-python-django-orbited-twisted/ http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/ yves -- You received this message because you are subscribed to the Google Gr

Re: access current model id, for custom widget

2008-11-25 Thread yves_s
I want that only dogs (no other animals from other groups) are listed in the foreignkey drop down box for the representative_animal (which would be all animals without modification) when I'm editing the AnimalGroup dogs. I finally hacked something together with the threadlocals middleware, which

Re: access current model id, for custom widget

2008-11-24 Thread yves_s
thanks for the replies donn and malcolm, here in more detail what I want to archive perhaps I'm on the totally wrong track... How do I pass the PASSANYTHINGHERE=whatever parameters to the widget (see sample code)? (the super part is clear, thanks) How to pass the "value" id on ModelForm level to t

Re: access current model id, for custom widget

2008-11-24 Thread yves_s
does anybody have some hints? On 21 Nov., 00:24, yves_s <[EMAIL PROTECTED]> wrote: > hi everybody > I'm making a custom form widget in the newforms admin and I want to > have access to the id of the current model instance (for already > existing data). > Can I get the

access current model id, for custom widget

2008-11-20 Thread yves_s
hi everybody I'm making a custom form widget in the newforms admin and I want to have access to the id of the current model instance (for already existing data). Can I get the id from the request object? Or any other solution? I'm really going mad with this problem.. yves --~--~-~--~--

dynamic values in limit_choices_to

2008-10-16 Thread yves_s
Hi I have this 2 models [CODE] class FontFamily(models.Model): name = models.CharField(max_length="50") default_fontfile = models.ForeignKey('FontFile', limit_choices_to = { 'id__in' : (1,2) }, # something like 'self.fontfile_set.all()' would be