This file contains hidden or 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
| from django.contrib import admin | |
| from django.conf import settings | |
| from django.utils.translation import ugettext_lazy as _ | |
| from easy_thumbnails.files import get_thumbnailer | |
| class AdminThumbnailMixin(object): | |
| thumbnail_options = {'size': (60, 60)} | |
| thumbnail_image_field_name = 'image' | |
| thumbnail_alt_field_name = None |
This file contains hidden or 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
| test |
This file contains hidden or 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
| {% load fixture_tags %} | |
| [ | |
| {% genfixtures "1:5" %} | |
| { | |
| "pk": {{ fixture.pk }}, | |
| "model": "auth.user", | |
| "fields": { | |
| "username": "{% gen_char "my_custom_username_generator" %}", | |
| "first_name": "{% gen_char "first_name" %}", | |
| "last_name": "{% gen_char "last_name" %}", |
NewerOlder