Skip to content

Commit

Permalink
Fixed #9
Browse files Browse the repository at this point in the history
Properties now show on root model on initial page load
  • Loading branch information
bufke committed Dec 27, 2012
1 parent 3546e8d commit 05bd064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions report_builder/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ def get_context_data(self, **kwargs):
ctx = super(ReportUpdateView, self).get_context_data(**kwargs)
model_class = self.object.root_model.model_class()
model_ct = ContentType.objects.get_for_model(model_class)
properties = get_properties_from_model(model_class)

direct_fields = get_direct_fields_from_model(model_class)
relation_fields = get_relation_fields_from_model(model_class)
Expand Down Expand Up @@ -434,6 +435,7 @@ def get_context_data(self, **kwargs):

ctx['related_fields'] = relation_fields
ctx['fields'] = direct_fields
ctx['properties'] = properties
ctx['model_ct'] = model_ct

return ctx
Expand Down

0 comments on commit 05bd064

Please sign in to comment.