isolated NavBarMixin

This commit is contained in:
Arthur Gerbaud
2016-12-01 11:15:55 +01:00
parent 387fe36382
commit 6b659144c9
4 changed files with 61 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ import datetime
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import User, AnonymousUser
# Create your models here.
class SingletonModel(models.Model):
@@ -20,6 +20,13 @@ class SingletonModel(models.Model):
except cls.DoesNotExist:
return cls()
## Visiteur
class Visiteur(AnonymousUser):
def __str__(self):
return "Visiteur"
class Organisme(models.Model):
""" Organisme : Association, Entreprise, Service public, ..."""