~bhavesh-goyal093/postorius/dashboard

« back to all changes in this revision

Viewing changes to src/postorius/models.py

  • Committer: Bhavesh Goyal
  • Date: 2015-06-22 05:17:05 UTC
  • Revision ID: bhavesh.goyal093@gmail.com-20150622051705-r8bc0qrv0091dj9c
Widget Functionality:
 *Implement Manual Tasks functionality and appropriate role handlers for different users
 *Replace pop overs with accordian view for tasks and index widgets
 *Implement Missing Search and Create List Functions for Index Widget
 *Simplified and Improve Data Logic for Graphical Stats
 *Add getcount method for EventTracker model
 *Modify Models to support Manual Tasks
UI:
 Improve CSS Code Structure
 Improve UI List Index & Event Streams Widget
 Add animations to Tasks Widget Icons
Fixing:
 Export Scripts to External Files
 Temp fix for Consistent View across all screens
 Fix href page navigation bug
 Fix Role handler for Event Streamer
 Modify regex for reorder tasks url

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
    """
358
358
    Tasks Model for Storing list of pending Admin Tasks.
359
359
    """
360
 
    task_id = models.CharField(max_length=50)
 
360
    task_id = models.CharField(max_length=50, null=True)
361
361
    task_type = models.CharField(max_length=20)
362
362
    made_on = models.DateTimeField()
363
363
    user_email = models.EmailField()
376
376
            return u'Subscription Request from {0} in {1}'.format(user_email, list_id)
377
377
        elif self.task_type == 'moderation':
378
378
            return u'Message held for moderation from {0} in {1}'.format(user_email, list_id)
 
379
        elif self.task_type == 'manual':
 
380
            return unicode(self.msg_subject)
379
381
 
380
382
    @property
381
383
    def get_date(self):
394
396
                            made_on=made_on,
395
397
                            event_on=event_on,)
396
398
        return event
 
399
    
 
400
    def get_count(self):
 
401
        return len(self.all())
397
402
 
398
403
class EventTracker(models.Model):
399
404
    """