# Circle admin

# DJango 
from django.contrib import admin

# Models
from cride.circles.models import Circle

@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
	#circle admin 
	list_display = (
		'slug_name',
		'name',
		'is_public',
		'verified',
		'is_limited',
		'members_limit'
	)

	search_fields = ('slug_name', 'name')

	list_filter = (
		'is_public',
		'verified',
		'is_limited'
	)

	actions = ['make_verified', 'make_unverified']

	def make_verified(self, request, queryset):
		#self is an istance CircelAdmin
		# make circles verified
		queryset.update(verified=True)
	make_verified.short_description = 'Make select circles verified'


	def make_unverified(self, request, queryset):
		#self is an istance CircelAdmin
		# make circles verified
		queryset.update(verified=False)
	make_unverified.short_description = 'Make select circles unverified'
0bbd4e2a56799de033744565e9cd53edeed713da
<mask token>


@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def make_verified(self, request, queryset):
        queryset.update(verified=True)
    <mask token>
    <mask token>
    <mask token>

<mask token>


@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def make_verified(self, request, queryset):
        queryset.update(verified=True)
    <mask token>

    def make_unverified(self, request, queryset):
        queryset.update(verified=False)
    <mask token>

<mask token>


@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
    list_display = ('slug_name', 'name', 'is_public', 'verified',
        'is_limited', 'members_limit')
    search_fields = 'slug_name', 'name'
    list_filter = 'is_public', 'verified', 'is_limited'
    actions = ['make_verified', 'make_unverified']

    def make_verified(self, request, queryset):
        queryset.update(verified=True)
    make_verified.short_description = 'Make select circles verified'

    def make_unverified(self, request, queryset):
        queryset.update(verified=False)
    make_unverified.short_description = 'Make select circles unverified'

from django.contrib import admin
from cride.circles.models import Circle


@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
    list_display = ('slug_name', 'name', 'is_public', 'verified',
        'is_limited', 'members_limit')
    search_fields = 'slug_name', 'name'
    list_filter = 'is_public', 'verified', 'is_limited'
    actions = ['make_verified', 'make_unverified']

    def make_verified(self, request, queryset):
        queryset.update(verified=True)
    make_verified.short_description = 'Make select circles verified'

    def make_unverified(self, request, queryset):
        queryset.update(verified=False)
    make_unverified.short_description = 'Make select circles unverified'

# Circle admin

# DJango 
from django.contrib import admin

# Models
from cride.circles.models import Circle

@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
	#circle admin 
	list_display = (
		'slug_name',
		'name',
		'is_public',
		'verified',
		'is_limited',
		'members_limit'
	)

	search_fields = ('slug_name', 'name')

	list_filter = (
		'is_public',
		'verified',
		'is_limited'
	)

	actions = ['make_verified', 'make_unverified']

	def make_verified(self, request, queryset):
		#self is an istance CircelAdmin
		# make circles verified
		queryset.update(verified=True)
	make_verified.short_description = 'Make select circles verified'


	def make_unverified(self, request, queryset):
		#self is an istance CircelAdmin
		# make circles verified
		queryset.update(verified=False)
	make_unverified.short_description = 'Make select circles unverified'