-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* contextfile * dont-nuke-migrations * django_extensions * page-draft-sections * reqs * reqs * page-section-display,reqs * questionable attrdict changes * Apps.huri (#65) * apps.huri * huri.models * . * . * newicons * mbme.stuff.in.avatar * migrations
- Loading branch information
Showing
33 changed files
with
276 additions
and
11 deletions.
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
apps/huri/migrations/0004_remove_theme_add_remove_theme_change_and_more.py
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,90 @@ | ||
# Generated by Django 5.0.7 on 2024-08-04 16:32 | ||
|
||
import awa.models | ||
import django.db.models.deletion | ||
import functools | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("huri", "0003_alter_theme_add_alter_theme_change_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="theme", | ||
name="add", | ||
), | ||
migrations.RemoveField( | ||
model_name="theme", | ||
name="change", | ||
), | ||
migrations.RemoveField( | ||
model_name="theme", | ||
name="delete", | ||
), | ||
migrations.AlterField( | ||
model_name="icon", | ||
name="icon", | ||
field=models.ImageField( | ||
blank=True, | ||
height_field="icon_height", | ||
null=True, | ||
upload_to=functools.partial( | ||
awa.models.image_directory, *(), **{"role": "icons"} | ||
), | ||
width_field="icon_width", | ||
), | ||
), | ||
migrations.CreateModel( | ||
name="ThemeIcon", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"icon", | ||
models.ImageField( | ||
blank=True, | ||
height_field="icon_height", | ||
null=True, | ||
upload_to=functools.partial( | ||
awa.models.image_directory, *(), **{"role": "icons"} | ||
), | ||
width_field="icon_width", | ||
), | ||
), | ||
( | ||
"icon_height", | ||
models.PositiveSmallIntegerField(blank=True, null=True), | ||
), | ||
("icon_width", models.PositiveSmallIntegerField(blank=True, null=True)), | ||
( | ||
"icon_type", | ||
models.PositiveSmallIntegerField(choices=[(0, "logo")], default=0), | ||
), | ||
( | ||
"theme", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="icons", | ||
to="huri.theme", | ||
), | ||
), | ||
], | ||
), | ||
migrations.AddConstraint( | ||
model_name="themeicon", | ||
constraint=models.UniqueConstraint( | ||
fields=("theme", "icon_type"), name="unique_icon_type_per_theme" | ||
), | ||
), | ||
] |
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
40 changes: 40 additions & 0 deletions
40
apps/mana/migrations/0002_alter_manauser_created_by_alter_manauser_modified_by.py
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,40 @@ | ||
# Generated by Django 5.0.7 on 2024-08-04 16:32 | ||
|
||
import django.db.models.deletion | ||
import django_currentuser.db.models.fields | ||
import django_currentuser.middleware | ||
from django.conf import settings | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mana", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="manauser", | ||
name="created_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
related_name="%(app_label)s_%(class)s_created", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="manauser", | ||
name="modified_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
on_update=True, | ||
related_name="%(app_label)s_%(class)s_modified", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
] |
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
41 changes: 41 additions & 0 deletions
41
apps/tuhi/migrations/0006_alter_folder_created_by_alter_folder_modified_by.py
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,41 @@ | ||
# Generated by Django 5.0.7 on 2024-08-04 16:32 | ||
|
||
import django.db.models.deletion | ||
import django_currentuser.db.models.fields | ||
import django_currentuser.middleware | ||
from django.conf import settings | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("tuhi", "0005_alter_pagesection_title"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="folder", | ||
name="created_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
related_name="%(app_label)s_%(class)s_created", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="folder", | ||
name="modified_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
on_update=True, | ||
related_name="%(app_label)s_%(class)s_modified", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
] |
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 @@ | ||
mbme.ico |
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 @@ | ||
mbme.png |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
56 changes: 56 additions & 0 deletions
56
awa/migrations/0002_alter_projectlink_created_by_alter_projectlink_icon_and_more.py
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,56 @@ | ||
# Generated by Django 5.0.7 on 2024-08-04 16:32 | ||
|
||
import awa.models | ||
import django.db.models.deletion | ||
import django_currentuser.db.models.fields | ||
import django_currentuser.middleware | ||
import functools | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("awa", "0001_initial"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="projectlink", | ||
name="created_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
related_name="%(app_label)s_%(class)s_created", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="projectlink", | ||
name="icon", | ||
field=models.ImageField( | ||
blank=True, | ||
height_field="icon_height", | ||
null=True, | ||
upload_to=functools.partial( | ||
awa.models.image_directory, *(), **{"role": "icons"} | ||
), | ||
width_field="icon_width", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="projectlink", | ||
name="modified_by", | ||
field=django_currentuser.db.models.fields.CurrentUserField( | ||
default=django_currentuser.middleware.get_current_authenticated_user, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_DEFAULT, | ||
on_update=True, | ||
related_name="%(app_label)s_%(class)s_modified", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
] |
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
Binary file not shown.
Binary file not shown.