from django.contrib import admin
from models import Source

class SourceAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}
    exclude = ('updating', 'updates', 'updated')
    list_display = ('__unicode__', 'status')
    actions = ('update',)
    
    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    update.short_description = "Update the selected sources."
    
admin.site.register(Source, SourceAdmin)
e4e5f6469c0a881117527de41bb815fbd81cef7c
<mask token>


class SourceAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    <mask token>


<mask token>

<mask token>


class SourceAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    exclude = 'updating', 'updates', 'updated'
    list_display = '__unicode__', 'status'
    actions = 'update',

    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    update.short_description = 'Update the selected sources.'


<mask token>

<mask token>


class SourceAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    exclude = 'updating', 'updates', 'updated'
    list_display = '__unicode__', 'status'
    actions = 'update',

    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    update.short_description = 'Update the selected sources.'


admin.site.register(Source, SourceAdmin)

from django.contrib import admin
from models import Source


class SourceAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    exclude = 'updating', 'updates', 'updated'
    list_display = '__unicode__', 'status'
    actions = 'update',

    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    update.short_description = 'Update the selected sources.'


admin.site.register(Source, SourceAdmin)

from django.contrib import admin
from models import Source

class SourceAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}
    exclude = ('updating', 'updates', 'updated')
    list_display = ('__unicode__', 'status')
    actions = ('update',)
    
    def update(self, request, queryset):
        for object in queryset:
            object.update(True)
    update.short_description = "Update the selected sources."
    
admin.site.register(Source, SourceAdmin)