Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed adding plugins to PlaceholderFields in frontend
Added a view in the tests project to see the placeholder field frontend admin in action
- Loading branch information
Jonas Obrist
committed
Aug 3, 2011
1 parent
194ba2f
commit d888549
Showing
6 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.shortcuts import render_to_response | ||
from django.template.context import RequestContext | ||
from project.placeholderapp.models import Example1 | ||
|
||
|
||
def example_view(request): | ||
context = RequestContext(request) | ||
context['examples'] = Example1.objects.all() | ||
return render_to_response('placeholderapp.html', context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "base.html" %} | ||
{% load placeholder_tags %} | ||
{% block content %} | ||
{% for example in examples %} | ||
<div>{% render_placeholder example.placeholder %}</div> | ||
{% empty %} | ||
<div>No examples found</div> | ||
{% endfor %} | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters