Re: Prepopulate form from URL?

2009-03-18 Thread Jorge Romo
Thank you so much to both of you! I was looking at the wrong documentation lol kudos! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Prepopulate form from URL?

2009-03-18 Thread Jorge Romo
Hello! I was trying to see if there's a way (I'm pretty sure there is a way) to prepopulate a form field from an url. For example: /foo?=bar and that in my form field "bar" is displayed. I have to work with java? there is another way? --~--~-~--~~~---~--~~ You

variables in forms.py?

2008-10-19 Thread Jorge Romo
Hell guys, I have this little doubt: I want to validate a form, but it has several different options. It has to take a value_a and the see if it is bigger, smaller or equal to another value_b. The issue (or maybe not :p) is that the value_b is entered by the user, so it is always different, it

Error while rendering comments

2008-10-08 Thread Jorge Romo
Hello, I have this issue: Caught an exception while rendering: Reverse for '' with arguments '()' and keyword arguments '{}' not found. The second line is what is causing me trouble: 1 {% load comments %} 2 3 {% for field in form %} 4 {% if field.is_hidden %} 5

Re: Set booleanfield to True on shell?

2008-09-24 Thread Jorge Romo
Woah it was so obvious! Thanks a lot Daniel! On Sep 24, 2:23 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 24, 8:00 pm, Jorge Romo <[EMAIL PROTECTED]> wrote: > > > Hello guys, maybe this is a kinda dumb question but i just can't > > figure it out! > &

Set booleanfield to True on shell?

2008-09-24 Thread Jorge Romo
Hello guys, maybe this is a kinda dumb question but i just can't figure it out! I have set to False as default for a is_finished field. If something is finished it should turn to True, but i just can't make it happen. Any idea? I tried with .objects.update but it updated all my model objects

Re: Adding database table to Selection Widget on newforms

2008-05-19 Thread Jorge Romo
orrect and will help you. > > V > > [1]:http://www.djangoproject.com/documentation/newforms/#choicefield > > On May 19, 6:32 am, Jorge Romo <[EMAIL PROTECTED]> wrote: > > > Hello again guys! > > > I'm using django-registration and i wanna use django-countries

Adding database table to Selection Widget on newforms

2008-05-18 Thread Jorge Romo
Hello again guys! I'm using django-registration and i wanna use django-countries with it so i can ask my new user for its country. But i don't know how to call it... this is my django-registration country code: Country = forms.CharField(widget=forms.Select(attrs=attrs_dict, choices=()),

Re: Get just one object id at the time in view assignment issue.

2008-05-16 Thread Jorge Romo
I feel I'm getting close to an answer... I hope you guys can help me out... I get this TypeError: Records() takes exactly 3 non-keyword arguments (2 given) def Records (request, UserName, Name): gamer = Artist.objects.get(UserName=UserName) record = Record.objects.get(Name=Name)

Get just one object id at the time in view assignment issue.

2008-05-16 Thread Jorge Romo
Hello guys! I have another little (i'm sure it is) problem (i have like 3 days trying to resolve it by myself but i just gave up lol), i'm using django-tagging so I can tag some records, the problem here is that i don't know how to take one object, take its id and then keep the cycle. this is