author | Madhusudan.C.S <madhusudancs@gmail.com> |
Wed, 09 Dec 2009 22:57:53 +0530 | |
changeset 53 | cc2604e0333c |
parent 1 | fda1c66b25f9 |
permissions | -rw-r--r-- |
1
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
# -*- coding: utf-8 -*- |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
from __future__ import absolute_import |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
#django |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
from django.contrib import admin |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
7 |
#kiwipycon |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
from .models import UserProfile |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
9 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
10 |
class UserProfileAdmin(admin.ModelAdmin): |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
11 |
list_display = ('user', 'email', 'url', 'about') |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
12 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
13 |
def email(self, obj): |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
14 |
return obj.user.email |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
15 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
16 |
admin.site.register(UserProfile, UserProfileAdmin) |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
17 |