From 843478dc1cad9f50d110362a8e2016bb005d3a79 Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Tue, 21 Feb 2012 16:55:30 +0530 Subject: Removed Profiler model --- profiler/__init__.py | 0 profiler/models.py | 52 ---------------------------------------------------- profiler/tests.py | 16 ---------------- profiler/views.py | 1 - 4 files changed, 69 deletions(-) delete mode 100644 profiler/__init__.py delete mode 100644 profiler/models.py delete mode 100644 profiler/tests.py delete mode 100644 profiler/views.py (limited to 'profiler') diff --git a/profiler/__init__.py b/profiler/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/profiler/models.py b/profiler/models.py deleted file mode 100644 index 4a01147..0000000 --- a/profiler/models.py +++ /dev/null @@ -1,52 +0,0 @@ -from django.db import models - -from django.contrib.auth.models import User - -GENDER_CHOICES = ( - ('Male' : 'Male'), - ('Female' : 'Female'), -) - -SUBJECT_CHOICES = ( - ('001' : 'Physics'), - ('002' : 'Mathematics'), - ('003' : 'Chemistry') -) - -CATEGORY_CHOICES = ( - ('GEN' : 'GENERAL'), - ('OBC' : 'OTHER BACKWARD CASTE'), -) - -class UserProfile(models.Model): - #Mandatory field - Should be unique for an user - user = models.ForeignKey(User, unique = True) - - #Custom fields - exam_id = models.CharField(max_length=30, - verbose_name="Registration number", - help_text = "Registration number as given in examination id card") - - subject = models.CharField(verbose_name="Examination Subject", - choices = SUBJECT_CHOICES) - - full_name = models.CharField(max_length=50, verbose_name="Full name", - help_text ="Name as given in application") - - dob = models.DateField(verbose_name="Date of Birth", - help_text="YYYY-MM-DD") - - category = models.CharField(verbose_name="Category", - help_text="Category as given in the application", - choices = CATEGORY_CHOICES) - - - def __unicode__(self): - return self.exam_id - -class Notification(models.Model): -"""Borrowed from PyTask. Used to send notifications to users from the site -regarding various announcements.""" - - pass - diff --git a/profiler/tests.py b/profiler/tests.py deleted file mode 100644 index 501deb7..0000000 --- a/profiler/tests.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -This file demonstrates writing tests using the unittest module. These will pass -when you run "manage.py test". - -Replace this with more appropriate tests for your application. -""" - -from django.test import TestCase - - -class SimpleTest(TestCase): - def test_basic_addition(self): - """ - Tests that 1 + 1 always equals 2. - """ - self.assertEqual(1 + 1, 2) diff --git a/profiler/views.py b/profiler/views.py deleted file mode 100644 index 60f00ef..0000000 --- a/profiler/views.py +++ /dev/null @@ -1 +0,0 @@ -# Create your views here. -- cgit