-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤝 Issue 1115 update profile page options (#1125)
* a different approach to extra content * Fields are present, but a bunch of tests fail * ✨ added Profile extra fields feature This adds extra fields for profiles similar to Mastodon's implementation refs #1115 * ✅ Fixed Failing Test Refs ✨ Update Profile page options #1115 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 📝 Update profiles/admin.py Co-authored-by: Maksudul Haque <saad.mk112@gmail.com> * 📝 Update profiles/forms.py Co-authored-by: Maksudul Haque <saad.mk112@gmail.com> * 📝 Update profiles/views.py Co-authored-by: Maksudul Haque <saad.mk112@gmail.com> * 📝 Adds missing import I broke * 🔥 squash migrations * 🔥 removing migration files for migration squashing * ⚡️ Improve performance * 🦺 Made URL required for ExtraFields * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 🥅 Improved UX with better error messaging * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Implemented code review changes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jeff Triplett <jefftriplett@users.noreply.github.com> Co-authored-by: Maksudul Haque <saad.mk112@gmail.com> Co-authored-by: Jeff Triplett <jeff.triplett@gmail.com>
- Loading branch information
1 parent
4bdc4ff
commit 3bb77fb
Showing
7 changed files
with
127 additions
and
11 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
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,33 @@ | ||
# Generated by Django 4.2.9 on 2024-04-15 22:39 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_extensions.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
replaces = [('profiles', '0005_add_extrafields'), ('profiles', '0006_alter_extrafields_value'), ('profiles', '0007_rename_extrafields_extrafield_and_more')] | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('profiles', '0004_remove_profile_google_code_url_profile_gitlab_url_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ExtraField', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
('label', models.CharField(max_length=256)), | ||
('url', models.URLField(max_length=256)), | ||
('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='profiles.profile')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
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
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