Initial commit: Aurora Moments self-hosted photo/video sharing platform
Django/DRF + PostgreSQL/Redis/Celery backend with accounts, library, moments, and notifications apps; React/TypeScript/Vite frontend with Instagram-style sidebar nav, feed, profiles, nested comment replies, notifications, and photo/video upload with ffmpeg-generated posters. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Comment, Moment, MomentItem, Reaction
|
||||
|
||||
|
||||
class MomentItemInline(admin.TabularInline):
|
||||
model = MomentItem
|
||||
extra = 0
|
||||
|
||||
|
||||
@admin.register(Moment)
|
||||
class MomentAdmin(admin.ModelAdmin):
|
||||
list_display = ("id", "owner", "audience", "created_at")
|
||||
list_filter = ("audience",)
|
||||
inlines = [MomentItemInline]
|
||||
|
||||
|
||||
admin.site.register(Comment)
|
||||
admin.site.register(Reaction)
|
||||
Reference in New Issue
Block a user