Commit e2430b2a by Bence Dányi

firewall_gui: fix integrityerror when creating new dns record

parent 14348bfb
......@@ -788,7 +788,7 @@ def save_record(request):
if 'id' in data and data['id']:
record = get_object_or_404(Record, id=data['id'])
else:
record = Record.objects.create()
record = Record()
errors = {}
record.name = data['name']
record.ttl = data['ttl']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment