Martin Pépin
1aed36330f
Write modern-style urls
...
- Proper use of include
- Defining namespaces (I do not use them for now because many urls are
going to change)
- Do not try to reverse with old-style references: 'cof.views.XXX'
2017-02-23 01:52:55 +01:00
Martin Pépin
859f191894
Simpler admin interface
2017-02-18 19:06:43 +01:00
Martin Pépin
659c6e720a
Merge branch 'master' into supportBDS
2017-02-12 19:36:17 +01:00
Martin Pépin
e1a8c0e8dd
Add missing files
2017-02-12 19:21:53 +01:00
Martin Pépin
1d7499d3b2
simplify profile edition and test it
2017-02-12 19:21:53 +01:00
Martin Pépin
0420839b20
Test the authentication
...
- An "outsider" must use django's authentication backend
- A user with a login_clipper should use CAS
2017-02-12 15:38:20 +01:00
Martin Pépin
8b620a5319
PEP8 in gestion/tests.py
2017-02-12 15:38:20 +01:00
Martin Pépin
a28c00e474
Move the auth stuff to gestion/
...
- The login views are in `gestion/`
- The templates are under `gestion/templates/gestion/`
- `cof/shared.py` moves to `gestion/` and is splitted into 3 files:
- The auth backends are in `backends.py`.
- The context_processor is in `context_processor.py`
- The LOCK/UNLOCK functions remain in `shared.py`
2017-02-12 15:38:14 +01:00
Martin Pépin
50b667993f
Merge branch 'master' into supportBDS
...
- Mise en page
- Cleanup des petits cours
- Utilisation de custommail
- Utilisation du ldap du SPI pour fetch les nouveaux comptes
2017-02-12 04:26:43 +01:00
Qwann
b16219f8ee
fixing profile view
2017-02-11 17:57:37 +01:00
Michele Orrù
f0c3def935
Make the test really works.
...
This fixes the proble with debug_toolbar,
the fucking toolbar that messes all your tests.
2017-02-11 15:47:31 +01:00
Michele Orrù
376e829502
Reaching a point where I can query /k-fet.
...
Edit forms and views in app kfet to make the depend on gestion.Profile and not
on cof.CofProfile.
2017-02-11 15:07:45 +01:00
Michele Orrù
f50ef1d51a
Merge remote-tracking branch 'origin/supportBDS-fixes1' into supportBDS
2017-02-11 14:26:55 +01:00
Martin Pépin
b639c04549
Fix the registration forms
...
- The former `RegistrationUserProfileForm` is splitted in two.
- There is a new form: `RegistrationCofProfileForm`
2017-02-11 12:42:36 +01:00
Martin Pépin
b1cf96d0ae
Move profile editing to gestion
2017-02-11 01:43:17 +00:00
Michele Orrù
815a5f274c
Fix some reviewing considerations.
...
- appropriate naming for migration
- remove __future__ imports.
- remove "CofProfile" left in kfet/models.py
2017-02-11 00:33:46 +01:00
Michele Orrù
25c3106168
Add some tests about how profiles types should relate to each other.
2017-02-11 00:33:36 +01:00
Michele Orrù
22da04c3e2
s/cofprofile/profile/g into k-fêt.
...
This commit also restores the only unittest present.
2017-02-11 00:32:58 +01:00
Martin Pépin
58d708b791
Move profile editing to gestion
2017-02-10 23:50:19 +01:00
Ubuntu
f39d1545f0
Generic profiles and migrations.
...
Creating profiles for BDS, COF and K-Fêt.
2017-02-10 22:12:03 +01:00
Martin Pépin
5aff771d9c
Set the new structure of gestioCOF
...
- `cof` is renamed `gestioCOF`
- `gestioncof` become `cof` (yes it looks pretty stupid but it is not)
- `bds` is created
2017-02-09 21:28:36 +01:00