#coding=utf-8

from django.contrib import admin
from django.contrib.contenttypes import generic

from modules.reversion.admin import VersionAdmin

from models import Suggestion, EventFollower


class EventFollowerInline(generic.GenericStackedInline):
    model = EventFollower
    extra = 1
    ct_field = "event_c_type"
    ct_fk_field = "event_id"
    readonly_fields  = ['created', 'modified']

class SuggestionAdmin(VersionAdmin):
    inlines = (EventFollowerInline,)
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place', 'done', 'date_starts', 'date_ends', '_short_url', 'counter_followers', 'location', 'created', 'modified']
    readonly_fields  = ['created', 'modified', 'slug', 'location']
    
    
admin.site.register(Suggestion, SuggestionAdmin)
6597bea4fed44ad77b1303e7fffa42786017f28c
<mask token>


class EventFollowerInline(generic.GenericStackedInline):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class SuggestionAdmin(VersionAdmin):
    inlines = EventFollowerInline,
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place',
        'done', 'date_starts', 'date_ends', '_short_url',
        'counter_followers', 'location', 'created', 'modified']
    readonly_fields = ['created', 'modified', 'slug', 'location']


<mask token>

<mask token>


class EventFollowerInline(generic.GenericStackedInline):
    model = EventFollower
    extra = 1
    ct_field = 'event_c_type'
    ct_fk_field = 'event_id'
    readonly_fields = ['created', 'modified']


class SuggestionAdmin(VersionAdmin):
    inlines = EventFollowerInline,
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place',
        'done', 'date_starts', 'date_ends', '_short_url',
        'counter_followers', 'location', 'created', 'modified']
    readonly_fields = ['created', 'modified', 'slug', 'location']


<mask token>

<mask token>


class EventFollowerInline(generic.GenericStackedInline):
    model = EventFollower
    extra = 1
    ct_field = 'event_c_type'
    ct_fk_field = 'event_id'
    readonly_fields = ['created', 'modified']


class SuggestionAdmin(VersionAdmin):
    inlines = EventFollowerInline,
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place',
        'done', 'date_starts', 'date_ends', '_short_url',
        'counter_followers', 'location', 'created', 'modified']
    readonly_fields = ['created', 'modified', 'slug', 'location']


admin.site.register(Suggestion, SuggestionAdmin)

from django.contrib import admin
from django.contrib.contenttypes import generic
from modules.reversion.admin import VersionAdmin
from models import Suggestion, EventFollower


class EventFollowerInline(generic.GenericStackedInline):
    model = EventFollower
    extra = 1
    ct_field = 'event_c_type'
    ct_fk_field = 'event_id'
    readonly_fields = ['created', 'modified']


class SuggestionAdmin(VersionAdmin):
    inlines = EventFollowerInline,
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place',
        'done', 'date_starts', 'date_ends', '_short_url',
        'counter_followers', 'location', 'created', 'modified']
    readonly_fields = ['created', 'modified', 'slug', 'location']


admin.site.register(Suggestion, SuggestionAdmin)

#coding=utf-8

from django.contrib import admin
from django.contrib.contenttypes import generic

from modules.reversion.admin import VersionAdmin

from models import Suggestion, EventFollower


class EventFollowerInline(generic.GenericStackedInline):
    model = EventFollower
    extra = 1
    ct_field = "event_c_type"
    ct_fk_field = "event_id"
    readonly_fields  = ['created', 'modified']

class SuggestionAdmin(VersionAdmin):
    inlines = (EventFollowerInline,)
    model = Suggestion
    fields = ['slug', '_vis', 'name', 'description', 'user', 'place', 'done', 'date_starts', 'date_ends', '_short_url', 'counter_followers', 'location', 'created', 'modified']
    readonly_fields  = ['created', 'modified', 'slug', 'location']
    
    
admin.site.register(Suggestion, SuggestionAdmin)