apps.ecidadania.news — News
news.admin — Administration
news.models — Data models
-
class apps.ecidadania.news.models.Post(models.Model)
Model of a news post.
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_name |
Context : | get_place |
-
class apps.ecidadania.news.views.EditPost(UpdateView)
Edit an existent post.
Parameters : | space_name, 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.