Corrections
This commit is contained in:
parent
71eada8eed
commit
a0df71fcc4
4 changed files with 11 additions and 8 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -103,8 +103,9 @@ tpathtxt
|
||||||
test.py
|
test.py
|
||||||
|
|
||||||
# Migrations
|
# Migrations
|
||||||
monstage/migrations/
|
migrations/
|
||||||
*.venv/
|
*.venv/
|
||||||
*~
|
*~
|
||||||
\#*
|
\#*
|
||||||
.#*
|
.#*
|
||||||
|
*.sqlite3
|
|
@ -149,7 +149,6 @@ class Stage(models.Model):
|
||||||
# Avis
|
# Avis
|
||||||
lieux = models.ManyToManyField(Lieu, related_name="stages",
|
lieux = models.ManyToManyField(Lieu, related_name="stages",
|
||||||
through="AvisLieu")
|
through="AvisLieu")
|
||||||
avis_stage = models.OneToOneField("AvisStage", related_name="stage")
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def avis_lieux(self):
|
def avis_lieux(self):
|
||||||
|
|
|
@ -16,3 +16,7 @@ DATABASES = {
|
||||||
INSTALLED_APPS += (
|
INSTALLED_APPS += (
|
||||||
'debug_toolbar',
|
'debug_toolbar',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
MIDDLEWARE_CLASSES += (
|
||||||
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||||
|
)
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
from django.conf.urls import patterns, include, url
|
from django.conf.urls import include, url
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
# Examples:
|
# Examples:
|
||||||
# url(r'^$', 'experiENS.views.home', name='home'),
|
# url(r'^$', 'experiENS.views.home', name='home'),
|
||||||
# url(r'^blog/', include('blog.urls')),
|
# url(r'^blog/', include('blog.urls')),
|
||||||
|
|
||||||
url(r'^djrichtextfield/', include('djrichtextfield.urls'))
|
url(r'^djrichtextfield/', include('djrichtextfield.urls')),
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
]
|
||||||
|
|
Loading…
Reference in a new issue