Refactor permission (need to re adjust), 2 test not passed(registration, permissions)
This commit is contained in:
parent
838bd2bb23
commit
a17e47acb9
17 changed files with 107 additions and 346 deletions
24
apps/activity/migrations/0003_auto_20220818_1105.py
Normal file
24
apps/activity/migrations/0003_auto_20220818_1105.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 2.2.28 on 2022-08-18 09:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('activity', '0002_auto_20220817_2253'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='activity',
|
||||
name='attendees_club',
|
||||
field=models.ForeignKey(help_text='Club that is authorized to join the activity.', on_delete=django.db.models.deletion.PROTECT, related_name='+', to='member.Club', verbose_name='attendees club'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='activity',
|
||||
name='location',
|
||||
field=models.CharField(blank=True, default='', help_text='Place where the activity is organized, eg. BDE.', max_length=255, verbose_name='location'),
|
||||
),
|
||||
]
|
||||
|
|
@ -36,7 +36,7 @@ class TestActivities(TestCase):
|
|||
name="Activity",
|
||||
description="This is a test activity\non two very very long lines\nbecause this is very important.",
|
||||
location="Earth",
|
||||
activity_type=ActivityType.objects.get(name="Activit\u00e9 gratuite ouverte"),
|
||||
activity_type=ActivityType.objects.get(name="Soir\u00e9e"),
|
||||
creater=self.user,
|
||||
organizer=Club.objects.get(name="BDE"),
|
||||
attendees_club=Club.objects.get(name="BDE"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue