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
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
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
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
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
5 matches
Mail list logo