Thanks for the tip. I don't think the override will work in my
particular case because I don't always add the defaults. I have a
check box on the form "Add default DNS Records" and I check for this
in the view:
if form.is_valid():
domain = form.save(commit=True)
if request.POS
On 10/1/07, Paddy Joy <[EMAIL PROTECTED]> wrote:
>
> I have a many to one relationship between domain and DNSRecord. When
> adding a domain I need to add some default DNSRecords. I do this after
> saving the domain using the following code.
>
>
> domain = form.save(commit=True)
>
> d = DNSRecord(d
I have a many to one relationship between domain and DNSRecord. When
adding a domain I need to add some default DNSRecords. I do this after
saving the domain using the following code.
domain = form.save(commit=True)
d = DNSRecord(domain=domain, type='NS', data='ns1.mydomain.com',
aux=0, ttl=720
3 matches
Mail list logo