def change_view(self, request, object_id, extra_context=None):
if 'advanced' not in request.GET:
self.form = forms.ModelForm
- self.fields = ('title', 'description', 'gazeta_link', 'wiki_link', 'recommended')
+ self.fields = ('title', 'description', 'wiki_link', 'recommended')
self.readonly_fields = ('title',)
else:
self.form = TaggableModelForm
(
Book,
[
- ('gazeta_link', lambda b: b.gazeta_link),
('wiki_link', lambda b: b.wiki_link),
('źródło', lambda b: b.extra_info.get('source_url')),
],
(
Picture,
[
- ('gazeta_link', lambda p: p.culturepl_link),
('wiki_link', lambda p: p.wiki_link),
('źródło', lambda p: p.extra_info.get('source_url')),
],
{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a>
</div>
{% endif %}
- {% if book.gazeta_link %}
- <div class="white-box">
- <a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a>
- </div>
- {% endif %}
{% if book.wiki_link %}
<div class="white-box">
<a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a>
{% if picture.info.about and not hide_about %}
<li><a href="{{ picture.info.about }}">{% trans "Image on the Editor's Platform" %}</a></li>
{% endif %}
- {% comment %}
- {% if book.gazeta_link %}
- <li><a href="{{ book.gazeta_link }}">{% trans "Picture description on Lektury.Gazeta.pl" %}</a></li>
- {% endif %}
- {% if book.wiki_link %}
- <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
- {% endif %}
- {% endcomment %}
</ul>
<p><a href="{{ picture.xml_file.url }}">{% trans "View XML source" %}</a></p>
</div>
{% endif %}
</div>
- {% if tag.gazeta_link %}
- <div class="white-box"><a href="{{ tag.gazeta_link }}">
- {{ tag }} {% trans "in Lektury.Gazeta.pl" %}
- </a></div>
- {% endif %}
{% if tag.wiki_link %}
<div class="white-box">
<a href="{{ tag.wiki_link }}">
<div class="clearboth"></div>
<div id="toggle-description"><p></p></div>
{% endif %}
- {% if author.gazeta_link %}
- <p>
- <a href="{{ author.gazeta_link }}">
- {% trans "Read work's study of this author on Lektury.Gazeta.pl" %}
- </a>
- </p>
- {% endif %}
{% if author.wiki_link %}
<p>
<a href="{{ author.wiki_link }}">