2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 17:56:30 +00:00

Added PartCategory

- Parent can be null (top-level category)
- Parent can be other PartCategory
This commit is contained in:
Oliver Walters
2017-03-25 23:07:43 +11:00
parent 2863ea1b70
commit bb4fc9820f
10 changed files with 47 additions and 63 deletions

View File

@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'part.apps.PartConfig'
]
MIDDLEWARE = [

View File

@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^part/', include('part.urls')),
url(r'^admin/', admin.site.urls),
]