-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
bfa2d76
commit 0040f30
Showing
7 changed files
with
147 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -584,6 +584,45 @@ Lancez la commande `python manage.py delete_useless_notif` pour supprimer toutes | |
Lancez la commande `python manage.py migrate_email_subscription` pour migrer tous les sujets suivis par e-mail vers | ||
les nouveaux modèles de souscriptions. | ||
|
||
Actions à faire pour mettre en prod la version 19 | ||
================================================= | ||
|
||
Page de contact | ||
--------------- | ||
|
||
**À faire après la mise en production par une personne ayant les droits admin**. | ||
|
||
Il faut ajouter les différents groupes de la page de contact via l'administration Django. Les informations pour les créer sont ci dessous : : | ||
|
||
``` | ||
L'équipe de communication | ||
Email : [email protected] | ||
Description : | ||
Responsable : ShigeruM | ||
groupe : Communication | ||
L'association | ||
Email : [email protected] | ||
Description : | ||
Responsable : Kje | ||
groupe : bureau (à créer) ou CA (j'ai pas l'info au moment de la PR, voir avec Kje) | ||
Le staff | ||
Email : | ||
Description : Le staff est constitué de certains membres du site dont le but est de contrôler le contenu publié sur Zeste de Savoir. Ils sont en charge de la modération des messages sur les forums et commentaires, ainsi que de la validation et publication d'articles et/ou de tutoriels de Zeste de Savoir. | ||
Responsable : Thunderseb | ||
groupe : staffs | ||
L'équipe technique | ||
Email : | ||
Description : L'équipe technique est constituée de certains membres du site dont le but est d'une part de s'assurer que le site reste toujours disponible en ligne, et d'autre part de corriger les bogues rencontrés sur le site ainsi que d'ajouter de nouvelles fonctionnalités. Des administrateurs systèmes, jusqu'aux designeurs, en passant par les développeurs back-end et intégrateurs front-end, ils s'occupent aussi de la maintenance du dépôt officiel du projet. | ||
Responsable : Andr0 | ||
groupe : devs | ||
``` | ||
|
||
Ces descriptions peuvent être modifiées via l'administration Django après la mise en production. | ||
|
||
--- | ||
|
||
**Notes auxquelles penser lors de l'édition de ce fichier (à laisser en bas) :** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.contrib import admin | ||
|
||
from zds.pages.models import GroupContact | ||
|
||
|
||
admin.site.register(GroupContact) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
from django.conf import settings | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('auth', '0006_require_contenttypes_0002'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GroupContact', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('name', models.CharField(unique=True, max_length=32, verbose_name=b'Nom (ex: Le staff)')), | ||
('description', models.TextField(null=True, verbose_name=b'Description (en markdown)', blank=True)), | ||
('email', models.EmailField(max_length=254, null=True, verbose_name=b'Adresse mail du groupe', blank=True)), | ||
('position', models.PositiveSmallIntegerField(unique=True, verbose_name=b'Position dans la page')), | ||
('group', models.OneToOneField(verbose_name=b"Groupe d'utilisateur", to='auth.Group')), | ||
('person_in_charge', models.ForeignKey(verbose_name=b'Responsable', blank=True, to=settings.AUTH_USER_MODEL, null=True)), | ||
], | ||
options={ | ||
'verbose_name': 'Groupe de la page de contact', | ||
'verbose_name_plural': 'Groupes de la page de contact', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# coding: utf-8 | ||
|
||
# This file is necessary for tests but is unused. | ||
from django.contrib.auth.models import Group, User | ||
from django.db import models | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class GroupContact(models.Model): | ||
""" | ||
Groups displayed in contact page and their informations. | ||
""" | ||
|
||
class Meta: | ||
verbose_name = _('Groupe de la page de contact') | ||
verbose_name_plural = _('Groupes de la page de contact') | ||
|
||
group = models.OneToOneField(Group, verbose_name=_('Groupe d\'utilisateur')) | ||
name = models.CharField(_('Nom (ex: Le staff)'), max_length=32, unique=True) | ||
description = models.TextField(_('Description (en markdown)'), blank=True, null=True) | ||
email = models.EmailField(_('Adresse mail du groupe'), blank=True, null=True) | ||
person_in_charge = models.ForeignKey(User, verbose_name=_('Responsable'), blank=True, null=True) | ||
position = models.PositiveSmallIntegerField(_('Position dans la page'), unique=True) | ||
|
||
def __unicode__(self): | ||
return self.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters