Skip to main content

Easy application for get content type at template

Project description

=====
django-contenttype-tag
=====

It's easy app for get content type of instance at templates

=====
How to use
=====

1. Add 'generic_ct_tag' at INSTALLED_APPS::

INSTALLED_APPS = (
...
'generic_ct_tag',
)

3. At template::

{% load generic_ct %}

{% content_type obj as ct %}
{{ ct.app_label }}
{{ ct.model }}

{# or #}

{% content_type obj %} {# The resulr: <app_label>.<model> #}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-contenttype-tag-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django-contenttype-tag-1.0.1.macosx-10.8-intel.exe (68.8 kB view details)

Uploaded Source

File details

Details for the file django-contenttype-tag-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-contenttype-tag-1.0.1.tar.gz
Algorithm Hash digest
SHA256 58c431080b554d92c0d9d5f331e0b46e9709ced31be3b40eff5e7c786f9a8c22
MD5 2ac20267c7bb7b3c2712f9716ca64f17
BLAKE2b-256 afda347dc06c8afd3a1d8113e9a7640b9f5b904342f59f3551d677dd41d45f20

See more details on using hashes here.

File details

Details for the file django-contenttype-tag-1.0.1.macosx-10.8-intel.exe.

File metadata

File hashes

Hashes for django-contenttype-tag-1.0.1.macosx-10.8-intel.exe
Algorithm Hash digest
SHA256 7700c1081eb7a6eb52d247103d54709cf4eff8e2776e440f449bfd380ba3c353
MD5 45fb50f0297164da54e3bb78008cf905
BLAKE2b-256 742775a993612387bb867039bdd5dbcb5951d5e45f0821dde23a40ae8881f9b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page