spaceless_json
Now you can format and compress json-data in django template
- django
- templatetag
- json
- spaceless
- formatting
- application/id+json
Now you can format and compress json-data in django template
Simple filter for django ModelAdmin How use: #models.py class ObjectWithGenericForeignKey(model.Model): content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_object= GenericForeignKey('content_type', 'object_id', for_concrete_model=False) #admin.py class CommentAdmin(admin.ModelAdmin): list_filter = (get_generic_foreign_key_filter(u'Filter title'),)
dkoldyaev has posted 2 snippets.