apps.ecidadania.news — News

news.admin — Administration

class apps.ecidadania.news.admin.PostAdmin(admin.ModelAdmin)

Administration view for news.

news.models — Data models

class apps.ecidadania.news.models.Post(models.Model)

Model of a news post.

news.forms — Forms

class apps.ecidadania.news.forms.NewsForm(ModelForm)

news.views — Views

class apps.ecidadania.news.views.ViewPost(DetailView)

View a specific post.

get_context_data(**kwargs)

Get extra context data for the ViewPost view.

class apps.ecidadania.news.views.AddPost(FormView)

Create a new post. Only registered users belonging to a concrete group are allowed to create news. only site administrators will be able to post news in the index page.

Parameters :space_url
Context :get_place
class apps.ecidadania.news.views.EditPost(UpdateView)

Edit an existent post.

Parameters :space_url, post_id
Context :get_place
class apps.ecidadania.news.views.DeletePost(DeleteView)

Delete an existent post. Post deletion is only reserved to spaces administrators or site admins.

get_context_data(**kwargs)

Get extra context data for the ViewPost view.