Skip to content

Commit

Permalink
fix the build view to use the new subnet building functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgei committed May 10, 2013
1 parent 7b7664e commit ba2684d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyder/base/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"static_interface", "dynamic_interface",)

DNS_OBJECTS = ("address_record", "cname", "domain", "mx", "nameserver", "ptr",
"soa", "srv", "sshfp", "txt", "view",)
"soa", "srv", "sshfp", "txt", "view",)

CORE_OBJECTS = ("ctnr_users", "ctnr", "user",)
3 changes: 2 additions & 1 deletion cyder/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def tablefy(objects, views=False, users=False, extra_cols=None):
# Actions
if can_update:
row_data.append({'value': ['Update', 'Delete'],
'url': [obj.get_update_url(), obj.get_delete_url()],
'url': [obj.get_update_url(),
obj.get_delete_url()],
'data': [[('pk', obj.id),
('object_type', obj._meta.db_table),
('getUrl', find_get_record_url(obj))],
Expand Down
3 changes: 2 additions & 1 deletion cyder/cydhcp/build/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ def build_network(request, network_pk):
else:
DEBUG_BUILD_STRING = network.build_subnet(raw=False)
return render_to_response('build/sample_build.html',
{'data': DEBUG_BUILD_STRING, 'network': network})
{'data': DEBUG_BUILD_STRING,
'network': network})

0 comments on commit ba2684d

Please sign in to comment.