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
from django.contrib import admin | |
from example.models import Example | |
class ExampleAdmin(admin.ModelAdmin): | |
""" | |
Don't allow addition of more than one model instance in Django admin | |
See: http://stackoverflow.com/a/12469482 | |
""" | |
def has_add_permission(self, request): |
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
import qbs | |
import qbs.FileInfo | |
import qbs.Xml | |
Module { | |
property bool compress: false | |
FileTagger { | |
patterns: "*.qrc" | |
fileTags: ["qrc"] |