source: subversion/sites/other/tilesAtHome_tahngo/user/models.py @ 10690

Last change on this file since 10690 was 9377, checked in by spaetz, 12 years ago

use Newform admin interface

File size: 426 bytes
Line 
1from django.db import models
2from django.contrib.auth.models import User
3
4class TahUser(models.Model):
5    renderedTiles = models.PositiveIntegerField(default=0)
6    kb_upload = models.PositiveIntegerField(default=0)
7    user = models.ForeignKey(User, unique=True)
8    last_activity = models.DateTimeField(auto_now=True)
9
10    class Meta:
11      ordering = ['-last_activity']
12
13    def __str__(self):
14      return str(self.user)
Note: See TracBrowser for help on using the repository browser.