Skip to content

Commit

Permalink
Reformat using black
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed May 14, 2022
1 parent efee4ad commit a87fb49
Show file tree
Hide file tree
Showing 221 changed files with 19,168 additions and 7,351 deletions.
2 changes: 1 addition & 1 deletion chat_box/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class ChatBoxConfig(AppConfig):
name = 'chat_box'
name = "chat_box"
39 changes: 30 additions & 9 deletions chat_box/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,43 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('judge', '0100_auto_20200127_0059'),
("judge", "0100_auto_20200127_0059"),
]

operations = [
migrations.CreateModel(
name='Message',
name="Message",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('time', models.DateTimeField(auto_now_add=True, verbose_name='posted time')),
('body', models.TextField(max_length=8192, verbose_name='body of comment')),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='judge.Profile', verbose_name='user')),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"time",
models.DateTimeField(auto_now_add=True, verbose_name="posted time"),
),
(
"body",
models.TextField(max_length=8192, verbose_name="body of comment"),
),
(
"author",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="judge.Profile",
verbose_name="user",
),
),
],
options={
'verbose_name': 'message',
'verbose_name_plural': 'messages',
'ordering': ('-time',),
"verbose_name": "message",
"verbose_name_plural": "messages",
"ordering": ("-time",),
},
),
]
8 changes: 4 additions & 4 deletions chat_box/migrations/0002_message_hidden.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('chat_box', '0001_initial'),
("chat_box", "0001_initial"),
]

operations = [
migrations.AddField(
model_name='message',
name='hidden',
field=models.BooleanField(default=False, verbose_name='is hidden'),
model_name="message",
name="hidden",
field=models.BooleanField(default=False, verbose_name="is hidden"),
),
]
8 changes: 4 additions & 4 deletions chat_box/migrations/0003_auto_20200505_2306.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('chat_box', '0002_message_hidden'),
("chat_box", "0002_message_hidden"),
]

operations = [
migrations.AlterField(
model_name='message',
name='hidden',
field=models.BooleanField(default=True, verbose_name='is hidden'),
model_name="message",
name="hidden",
field=models.BooleanField(default=True, verbose_name="is hidden"),
),
]
8 changes: 4 additions & 4 deletions chat_box/migrations/0004_auto_20200505_2336.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('chat_box', '0003_auto_20200505_2306'),
("chat_box", "0003_auto_20200505_2306"),
]

operations = [
migrations.AlterField(
model_name='message',
name='hidden',
field=models.BooleanField(default=False, verbose_name='is hidden'),
model_name="message",
name="hidden",
field=models.BooleanField(default=False, verbose_name="is hidden"),
),
]
48 changes: 39 additions & 9 deletions chat_box/migrations/0005_auto_20211011_0714.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,52 @@
class Migration(migrations.Migration):

dependencies = [
('judge', '0116_auto_20211011_0645'),
('chat_box', '0004_auto_20200505_2336'),
("judge", "0116_auto_20211011_0645"),
("chat_box", "0004_auto_20200505_2336"),
]

operations = [
migrations.CreateModel(
name='Room',
name="Room",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('user_one', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_one', to='judge.Profile', verbose_name='user 1')),
('user_two', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_two', to='judge.Profile', verbose_name='user 2')),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"user_one",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="user_one",
to="judge.Profile",
verbose_name="user 1",
),
),
(
"user_two",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="user_two",
to="judge.Profile",
verbose_name="user 2",
),
),
],
),
migrations.AddField(
model_name='message',
name='room',
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='chat_box.Room', verbose_name='room id'),
model_name="message",
name="room",
field=models.ForeignKey(
default=None,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="chat_box.Room",
verbose_name="room id",
),
),
]
38 changes: 31 additions & 7 deletions chat_box/migrations/0006_userroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,42 @@
class Migration(migrations.Migration):

dependencies = [
('judge', '0116_auto_20211011_0645'),
('chat_box', '0005_auto_20211011_0714'),
("judge", "0116_auto_20211011_0645"),
("chat_box", "0005_auto_20211011_0714"),
]

operations = [
migrations.CreateModel(
name='UserRoom',
name="UserRoom",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('last_seen', models.DateTimeField(verbose_name='last seen')),
('room', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='chat_box.Room', verbose_name='room id')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='judge.Profile', verbose_name='user')),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("last_seen", models.DateTimeField(verbose_name="last seen")),
(
"room",
models.ForeignKey(
default=None,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="chat_box.Room",
verbose_name="room id",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="judge.Profile",
verbose_name="user",
),
),
],
),
]
8 changes: 4 additions & 4 deletions chat_box/migrations/0007_auto_20211112_1255.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('chat_box', '0006_userroom'),
("chat_box", "0006_userroom"),
]

operations = [
migrations.AlterField(
model_name='userroom',
name='last_seen',
field=models.DateTimeField(auto_now_add=True, verbose_name='last seen'),
model_name="userroom",
name="last_seen",
field=models.DateTimeField(auto_now_add=True, verbose_name="last seen"),
),
]
28 changes: 22 additions & 6 deletions chat_box/migrations/0008_ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,33 @@
class Migration(migrations.Migration):

dependencies = [
('judge', '0116_auto_20211011_0645'),
('chat_box', '0007_auto_20211112_1255'),
("judge", "0116_auto_20211011_0645"),
("chat_box", "0007_auto_20211112_1255"),
]

operations = [
migrations.CreateModel(
name='Ignore',
name="Ignore",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ignored_users', models.ManyToManyField(to='judge.Profile')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ignored_chat_users', to='judge.Profile', verbose_name='user')),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("ignored_users", models.ManyToManyField(to="judge.Profile")),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="ignored_chat_users",
to="judge.Profile",
verbose_name="user",
),
),
],
),
]
Loading

0 comments on commit a87fb49

Please sign in to comment.