Thanks for the help :) Seems like a very sound approach, not least
because I understand it!
--
James
On Oct 4, 3:53 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-10-04 at 07:37 -0700, James Mulholland wrote:
> > Hi,
>
> > [Note: apologies for the do
Hi,
I'm starting to investigate newforms in detail (having previously used
the old forms library) since I have a job to convert an Access DB to
web format. The client wants to maintain a similar layout to what they
have in Access, which in places means having one page which has
several records on
Hi,
[Note: apologies for the double post. Google didn't offer to preview
the message, which is what I was trying to do...]
I'm starting to investigate newforms in detail (having previously used
the old forms library) since I have a job to convert an Access DB to
web format. The client wants to m
Thanks -- I'll try those ideas as well.
On Oct 4, 4:05 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 10/4/07, Marty Alchin <[EMAIL PROTECTED]> wrote:
>
> > It's using the save() method from AddressForm, which only knows about
> > its own fields.
>
> You should also verify that is_valid() is
It worked, first time :-) For the record, this is what the code looks
like now:
urls.py:
(r'address/edit/(?P\d+)/', 'testdb.mtable.views.edit_address')
views.py:
def edit_address(request, id=None):
address = Address.objects.get(pk=id)
country = address.country
AddressForm = form_
This question is related to this one I asked a couple of months ago:
http://decenturl.com/groups.google/djangomultipleforms
I'd like to use something similar to the "edit_inline" option, but in
a view. My test models look like this:
class Person(models.Model):
person_name = models.CharField
ween
properties of models. The template looks like this:
{{ form }}
{% for c in car_forms %}
{{ c }}
{% endfor %}
--
James
On 23 Nov, 14:55, James Mulholland <[EMAIL PROTECTED]> wrote:
> This question is related to this one I asked a couple of months ago:
>
>
Thank you, Malcolm, Ivan :) That just saved me helluva lot of work!
--
James
--~--~-~--~~~---~--~~
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
Suppose I have a dictionary like this:
data = { 'a':'1', 'b':'2', 'c':'3' }
and a model like this:
class Test(models.Model):
a = models.CharField(maxlength=8)
b = models.CharField(maxlength=8)
b = models.CharField(maxlength=8)
I would like (in a python script) to be able to say
t
This might fail the obviousness test for some people, but it just saved
me a shed-load of work. Basic problem is this: I pitched Django to a
client a few weeks ago, and they seemed very happy with it and told me
to go ahead. About a week into the project (ie, when I'd all but
finished it ;) they g
Hi, yes I looked at Curl but I was looking for a quick 'n' dirty way to
do it, without worrying too much about the options on the command line.
Since I'm coming to Python from Perl, I would also probably choose a
Perl-ish way to do what you're accomplishing with Python modules. But,
whatever :)
C
Excuse me if this is a daft question -- I'm new to both Python and
Django, but I guess it's a credit to both of them that I'm doing some
fairly nifty stuff building a new corporate intranet.
One feature I'd like to add is a meeting scheduler, where someone can
set up a meeting and invite various
Wilson, thanks -- that answers both issues. Really appreciate your
website, btw: it was one of the reasons I started learning to use
Django.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
I've set up Django under Apache 2, so that users are prompted for their
LDAP username/password when they try to visit my Django site. This
authentication is the standard Apache http-auth dialog which has
nothing to do with Django itself. I also created this (below) as a way
to populate the Django
Thanks Ramiro! I'll take a look at that today. I'm always a bit
reluctant to use non-standard code, but if it's being regularly merged
that should be ok.
--
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
I'm trying to create an automated booking system for educational
events. Admin user creates workshops in the admin interface, then
creates a number of related accommodation options. Website visitor
signs up for workshops (ie, potentially more than one workshop) and can
also sign up for accommodati
Thanks :-) I'll take a look at those resources.
--~--~-~--~~~---~--~~
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
Hi, I have a routine like this in a custom manipulator (which handles
SMS message-sending from a web-page):
def save(self, data):
temp = Message(
contact_type = data['contact_type'],
mobile_number = data['mobile_number'],
message = data['message'],
date_sent =
x27;]:
temp.teams.add(Team.objects.get(pk=t))
However, only the last selected team in the list gets saved.
I would *really* appreciate it if someone could help me with this!
--
James
James Mulholland wrote:
> Hi, I have a routine like this in a custom manipulator (which handles
>
Russ and Ivan -- thanks very much for your help! I'd spent several
hours searching for info and could only find details of how to do it
for old versions.
Thanks again.
--
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Related to a question I asked about custom manipulators earlier on, I
have a manipulator like this:
class SmsManipulator(forms.Manipulator):
def __init__(self):
self.fields = (
forms.SelectField(field_name="contact_type", choices=TYPES,
validator_list=[self.gotContactType]
Chris, that's perfect, thanks for putting me out of my misery :) I
still *love* Django but if I'd started with manipulators, etc, I think
I would have quit almost immediately!
--
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
22 matches
Mail list logo