Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
warpinfra
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor 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
Sebastian
warpinfra
Commits
643a1a74
Commit
643a1a74
authored
9 years ago
by
Christian Dresen
Browse files
Options
Downloads
Patches
Plain Diff
Warpfood
Added Admin-Models
parent
3a99e9c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/warpfood/admin.py
+11
-3
11 additions, 3 deletions
web/warpfood/admin.py
with
11 additions
and
3 deletions
web/warpfood/admin.py
+
11
−
3
View file @
643a1a74
from
django.contrib
import
admin
from
warpfood.models
import
PizzaService
from
warpfood.models
import
*
# Register your models here.
@admin.register
(
PizzaService
)
class
PizzaServiceAdmin
(
admin
.
ModelAdmin
):
@admin.register
(
FoodService
)
class
FoodServiceAdmin
(
admin
.
ModelAdmin
):
pass
@admin.register
(
FoodCategory
)
class
FoodCategoryAdmin
(
admin
.
ModelAdmin
):
pass
@admin.register
(
FoodProduct
)
class
FoodProductAdmin
(
admin
.
ModelAdmin
):
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment