Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cuisine-entre-amis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leila
cuisine-entre-amis
Wiki
Home
Changes
Page history
New page
Templates
Clone repository
leila created page: home
authored
9 years ago
by
Leila
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
home.md
+24
-0
24 additions, 0 deletions
home.md
with
24 additions
and
0 deletions
home.md
0 → 100644
View page @
c4fb513b
Inline Admin
pour les posts
utiliser StackedInline dans la class du champ PostPartInline
class PostPartInline(admin.StackedInline):
model = PostPart
et le remettre:
class PostAdmin(admin.ModelAdmin):
list_display = ('__str__',)
inlines = [
PostPartInline,
]
admin.site.register(Post, PostAdmin)
ATTENTION !!!
Pas de PostPart Admin !
\ No newline at end of file
This diff is collapsed.
Click to expand it.