summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Hostbase')
-rw-r--r--src/lib/Server/Hostbase/hostbase/sql/zone.sql2
-rw-r--r--src/lib/Server/Hostbase/hostbase/views.py2
-rw-r--r--src/lib/Server/Hostbase/hostbase/webtemplates/zoneedit.html2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/sql/zone.sql b/src/lib/Server/Hostbase/hostbase/sql/zone.sql
new file mode 100644
index 000000000..b78187ab2
--- /dev/null
+++ b/src/lib/Server/Hostbase/hostbase/sql/zone.sql
@@ -0,0 +1,2 @@
+INSERT INTO hostbase_zone (zone, serial, admin, primary_master, expire, retry, refresh, ttl, aux)
+VALUES ('.rev', 0, '', '', 1209600, 1800, 7200, 7200, ''); \ No newline at end of file
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py
index c60e2c2ff..dd777eea6 100644
--- a/src/lib/Server/Hostbase/hostbase/views.py
+++ b/src/lib/Server/Hostbase/hostbase/views.py
@@ -818,7 +818,7 @@ def zoneedit(request, zone_id):
if created:
address.save()
zone.addresses.add(address)
- return HttpResponseRedirect('/hostbase/zones/%s/' % zone.id)
+ return HttpResponseRedirect('/hostbase/zones/%s/edit' % zone.id)
else:
zone = Zone.objects.get(id=zone_id)
return render_to_response('zoneedit.html',
diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/zoneedit.html b/src/lib/Server/Hostbase/hostbase/webtemplates/zoneedit.html
index d1cf08f17..7eb7f2184 100644
--- a/src/lib/Server/Hostbase/hostbase/webtemplates/zoneedit.html
+++ b/src/lib/Server/Hostbase/hostbase/webtemplates/zoneedit.html
@@ -112,7 +112,7 @@ div#address{
<col width="*">
<tr><td valign="top"> <b>A records</b>
{% if addresses %}
- <br><a style="font-size:75%" href=# onclick="toggleField('address')">add a new MX record</a>
+ <br><a style="font-size:75%" href=# onclick="toggleField('address')">add a new A record</a>
{% endif %}
</td>
<td>