mirror of
https://github.com/barkeser2002/offline-db.git
synced 2026-09-25 02:19:59 +03:00
- Implement Follow and UserAnimeList models to allow user following and anime list tracking (watchlist, completed, dropped). - Add `is_public` boolean field to User model for privacy control. - Create serializers and ViewSets (FollowViewSet, UserAnimeListViewSet) with correct object-level permissions (IsOwnerOrReadOnly) to prevent IDOR vulnerabilities. - Add `ActivityFeedViewSet` to aggregate recent badge and watch log activities of followed users. - Add DRF routers in main `urls.py`. - Include `test_social.py` with comprehensive API tests. - Resolve migration conflict automatically using `--merge`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
19 lines
443 B
Python
19 lines
443 B
Python
# Generated by Django 6.0.5 on 2026-05-10 20:28
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("content", "0015_alter_externalsource_embed_url_alter_subtitle_file"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="externalsource",
|
|
name="embed_url",
|
|
field=models.URLField(help_text="Embed/iframe URL"),
|
|
),
|
|
]
|