Django Permissions

2017-03-06 Thread Jim Lamb
I am trying to add django permissions when a type add a source iusing the following model from __future__ import unicode_literals from django.db import models """Class for Data Sources""" class DataSource(models.Model): display_name = models.CharField(max_length=20) code_name = models.C

Django Permissions

2017-03-06 Thread Jim Lamb
I am trying to give add to the django permissions when you add a Type to a Source with the following models.py I would like it to be from __future__ import unicode_literals from django.db import models """Class for Data Sources""" class Source(models.Model): display_name = models.CharFie

django.contrib.admin

2018-06-29 Thread Jim Lamb
How can I override the list_display to add fields in my admin console for users? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

Logging a button click

2018-11-26 Thread Jim Lamb
I am trying to log a button click from a template. Can someone please help??? view.py from django.shortcuts import render from .models import UploadFile from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger import loggin

unable to do migrate when defining custom user model

2018-11-26 Thread Jim Lamb
Send us some code -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@go