brewery-website/yeast/urls.py
Chris Giacofei 4a02f7db29 Fix incorrect name for yeast propogation lookup.
Also change references to `batch` to `propogation`.
2024-06-13 14:28:40 -04:00

22 lines
971 B
Python

from django.urls import include, path
from django.contrib.auth.decorators import login_required
from django.contrib import admin
from yeast.views import YeastListView, BatchListView, home, sample, batch, batch_labels, addBatch, addStrain, get_batch, NewPropogation
# app_name = 'yeast'
urlpatterns = [
path('samples/<int:yeast_id>/', sample, name='yeast'),
path('samples/', YeastListView.as_view(), name='yeasts'),
path('batches/addbatch/', login_required(addBatch.as_view()), name='addbatch'),
path('batches/addstrain/', login_required(addStrain.as_view()), name='addstrain'),
path('batches/<int:propogation_id>/', batch, name='batch'),
path('batches/', BatchListView.as_view(), name='batches'),
path('batch_lookup/', get_batch, name='get_batch'),
path('batch_labels/<int:propogation_id>/', login_required(batch_labels), name='labels'),
path('progation/add/', NewPropogation, name='propogate'),
path('', home, name='home'),
]