# Path: showing/models.py
# class Gallery(SortableMixin, models.Model):
#     id = models.UUIDField(primary_key=True,
#                           default=uuid4,
#                           editable=False,
#                           unique=True)
# 
#     title = models.CharField(max_length=150)
#     slug = models.SlugField(unique=True)
#     order = models.PositiveIntegerField(default=0,
#                                         editable=False,
#                                         db_index=True)
# 
#     def get_absolute_url(self):
#         return reverse('gallery-detail',
#                        args=[str(self.slug)])
# 
#     def __unicode__(self):
#         return self.title
# 
#     class Meta:
#         ordering = ['order']
#         verbose_name_plural = 'Galleries'


from django.conf import settings
from showing.models import Gallery



def navbar(request):
    '''
    Adds the needed data for the navbar context
    '''
    return {
        'navbar': {

# Path: showing/models.py
# class Gallery(SortableMixin, models.Model):
#     id = models.UUIDField(primary_key=True,
#                           default=uuid4,
#                           editable=False,
#                           unique=True)
# 
#     title = models.CharField(max_length=150)
#     slug = models.SlugField(unique=True)
#     order = models.PositiveIntegerField(default=0,
#                                         editable=False,
#                                         db_index=True)
# 
#     def get_absolute_url(self):
#         return reverse('gallery-detail',
#                        args=[str(self.slug)])
# 
#     def __unicode__(self):
#         return self.title
# 
#     class Meta:
#         ordering = ['order']
#         verbose_name_plural = 'Galleries'


# Path: murals/processors.py
from django.conf import settings
from showing.models import Gallery




def navbar(request):
    '''
    Adds the needed data for the navbar context
    '''
    return {
        'navbar': {

            'galleries': Gallery.objects.all()