Hello folks. I have three models:
class Car(models.Model):
..def render(self):
return 'This is a car'
class Ferrari(Car):
..def render(self):
return 'This is a Ferrari'
class Porsche(Car):
..def render(self):
return 'This is a Porsche'
I know that this is going to generate three dif
You can easily add new rows to the form with ids 'rowN', where N is the
number of rows, and also modify a hidden element that tells how many
elements are there in the form so far. This is more elegant than string
manipulation, and also more efficient.
Cheers,
Felipe
On Sun, Nov 30, 2008 at 3:01
I don't see why it wouldn't.
On Sun, Nov 30, 2008 at 3:42 AM, Zeroth <[EMAIL PROTECTED]> wrote:
>
> Thanks Felipe for your quick answer. Does that still get validated
> properly?
>
> On Nov 29, 9:20 pm, "Felipe Sodré Silva" <[EMAIL PROTECTED]> wro
Hi everyone.
When I get the data from a form, I'm processing it using request.POST
object, like this:
def process(request):
..var = request.POST['some_field_id']
I want to know if it's possible to get these values using a Form object,
like this:
def process(request):
..form = MyFormClass(reques
Thanks a lot Malcolm!
On Tue, Dec 2, 2008 at 2:46 AM, Malcolm Tredinnick <[EMAIL PROTECTED]
> wrote:
>
>
> On Tue, 2008-12-02 at 02:30 -0200, Felipe Sodré Silva wrote:
> > Hi everyone.
> >
> > When I get the data from a form, I'm processing it us
I'm sorry, what I am actually able to add and edit profiles, but I'd like it
to be added at the time of user registration (as if it was part of the User
model, and not only after creating the new user in separate).
Thanks
Felipe
On Sun, Oct 5, 2008 at 12:43 AM, Felipe Sodré Sil
Hi. I've followed these steps to create a profile model to my users:
http://www.djangobook.com/en/1.0/chapter12/#cn222
However, I'm still not able to add nor edit the profile information in the
admin interface. Is there any further step to take in order to be able to do
it?
Thank you!
Felipe
--~
Hi.
I've made a django installation a few months ago, but now I forgot where the
installation directory is (that is, the directory where I can edit Admin
template files and other contrib files).
Is there an easy way to discover where it is? I'm using MacOS X
Thanks !
Felipe
--~--~-~--~
good idea to edit anything in your
> django installation because you will loose these changes once you run
> an update.
>
> Maybe have a look at the docs how to define your own admin templates
>
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
&g
Hello all. I'm facing a really weird problem here.
I have this template:
alert('post : {{ post }}');
and this view for the template:
def jstest(request):
post = request.POST.get('bla', 'no posts')
if request.method != 'POST':
post = 'No post data sent'
ret
Never mind. I should have used name='bla' instead of id='bla'.
On Wed, Feb 4, 2009 at 5:59 PM, Felipe Sodré Silva wrote:
> Hello all. I'm facing a really weird problem here.
>
> I have this template:
>
> alert('post : {{ post }}');
>
11 matches
Mail list logo