Commit bbd9cc1d authored by Daniel W Bond's avatar Daniel W Bond
Browse files

organized imports in housing app

parent 12bdb625
# core django imports
from django.contrib import admin
from housing.models import Class, Building, Floor, Room
# imports from your apps
from .models import Class, Building, Floor, Room
# Register your models here.
admin.site.register(Class)
admin.site.register(Building)
admin.site.register(Floor)
......
# core django imports
from django.db import models
from autoslug import AutoSlugField
from django.core.urlresolvers import reverse
# third party imports
from model_utils.models import TimeStampedModel
from randomslugfield import RandomSlugField
from autoslug import AutoSlugField
#from localflavor.us.models import USStateField
from django.core.urlresolvers import reverse
class Building(TimeStampedModel):
name = models.CharField(max_length=100)
......
# standard library imports
import io
import string
import random
......
# core django imports
from django.test import TestCase
# Create your tests here.
# core django imports
from django.conf.urls import patterns, include, url
# imports from your apps
from .views import ListBuildings, DetailBuilding, DetailFloor, DetailRoom
from .models import Building, Floor, Room
from housing.views import ListBuildings, DetailBuilding, DetailFloor, DetailRoom
from housing.models import Building, Floor, Room
urlpatterns = patterns('',
......
from django.views.generic import DetailView, ListView, CreateView, UpdateView, DeleteView
from housing.models import Building, Floor, Room
# core django imports
from django.views.generic import DetailView, ListView, CreateView, UpdateView,\
DeleteView
# third party imports
from braces.views import LoginRequiredMixin
# imports from your apps
from .models import Building, Floor, Room
from accounts.models import Student
from braces.views import LoginRequiredMixin
# a list of neighborhoods and their buildings
class ListBuildings(LoginRequiredMixin, ListView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment