Skip to content

Commit

Permalink
Update cookbook example import paths
Browse files Browse the repository at this point in the history
Make it clear these are from hypothetical examples _in the cookbook_.

Closes-128
  • Loading branch information
bennylope authored Jun 13, 2017
1 parent 10ccec0 commit cf3ce55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Model admin definitions
from django.contrib import admin
from organizations.models import (Organization, OrganizationUser,
OrganizationOwner)
from .forms import UserAdminForm
from .models import Account, AccountUser
from myapp.forms import UserAdminForm
from myapp.models import Account, AccountUser

class AccountUserAdmin(admin.ModelAdmin):
form = UserAdminForm()
Expand All @@ -89,7 +89,7 @@ We'll go through this piece by piece, but here's the full class::
from django import forms
from django.conf import settings
from django.contrib.sites.models import Site
from .models import AccountUser
from myapp.models import AccountUser

class AccountUserForm(forms.ModelForm):
"""
Expand Down Expand Up @@ -161,7 +161,7 @@ this, of course.::
from django.contrib.sites.models import Site
from organizations.backends import invitation_backend
from organizations.backends.forms import UserRegistrationForm
from .models import PartnerUser
from partners.models import PartnerUser

class RegistrationForm(UserRegistrationForm):
"""
Expand Down

0 comments on commit cf3ce55

Please sign in to comment.