Commit 8b511eaf authored by Aymeric Barantal's avatar Aymeric Barantal
Browse files

feedback module

parent 19026697
from django.contrib import admin
from campaign.feedback.models import Feedback
admin.site.register(Feedback)
from django.db import models
from campaign.campaign.models import CampaignContact
from campaign.organization.models import FeedbackCategory
class Feedback(models.Model):
id = models.AutoField(primary_key=True)
callee = models.ForeignKey(CampaignContact)
category = models.ForeignKey(FeedbackCategory)
comment = models.CharField(max_length=512, blank=True)
def __unicode__(self):
return 'feedback for %s on %s' % (self.callee.contact,
self.callee.campaign.name)
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment