Rename BatchRecipe -> Recipe.
Much better now thanks.
This commit is contained in:
@ -2,7 +2,7 @@ from django.contrib import admin
|
||||
from django.utils.html import format_html
|
||||
from django.apps import apps
|
||||
|
||||
from beer.models import Batch, BatchRecipe, Mash, MashStep, \
|
||||
from beer.models import Batch, Recipe, Mash, MashStep, \
|
||||
RecipeFermentable, RecipeHop, RecipeMisc, RecipeYeast
|
||||
from yeast.models import Yeast
|
||||
|
||||
@ -34,8 +34,8 @@ class StrainInline(admin.TabularInline):
|
||||
extra = 1
|
||||
|
||||
|
||||
@admin.register(BatchRecipe)
|
||||
class BatchRecipeAdmin(admin.ModelAdmin):
|
||||
@admin.register(Recipe)
|
||||
class RecipeAdmin(admin.ModelAdmin):
|
||||
list_display = ['name']
|
||||
inlines = [
|
||||
FermentableInline,
|
||||
|
Reference in New Issue
Block a user