Commit 706152de authored by eliott's avatar eliott
Browse files

Moved some things around.

parent 89659cef
......@@ -10,6 +10,8 @@ class Mirror(models.Model):
admin_email = models.CharField(maxlength=255, null=True, blank=True)
def __str__(self):
return self.domain
class Meta:
db_table = 'common_mirror'
class Admin:
list_display = ('domain', 'country')
list_filter = ('country',)
......@@ -22,6 +24,8 @@ class Donator(models.Model):
name = models.CharField(maxlength=255)
def __str__(self):
return self.name
class Meta:
db_table = 'common_donator'
class Admin:
ordering = ['name']
search_fields = ('name')
......
......@@ -6,8 +6,8 @@
from archweb_dev.packages.models import Package
from archweb_dev.todolists.models import Todolist, TodolistPkg
from archweb_dev.settings import DATA_DIR
from archweb_dev.utils import validate
from archweb_dev.public.models import UserProfile
from archweb_dev.lib.utils import validate
from archweb_dev.devel.models import UserProfile
@login_required
def index(request):
......
......@@ -4,7 +4,7 @@
from archweb_dev.packages.models import Package, Repo
from archweb_dev.news.models import News
from archweb_dev.settings import DATA_DIR
from archweb_dev.public.models import Donator, Mirror
from archweb_dev.devel.models import Donator, Mirror
def index(request):
# get the most recent 10 news items
......
......@@ -75,7 +75,7 @@
# Set django's User stuff to use our profile model
# format is app.model
AUTH_PROFILE_MODULE = 'public.UserProfile'
AUTH_PROFILE_MODULE = 'devel.UserProfile'
INSTALLED_APPS = (
'django.contrib.auth',
......
Supports Markdown
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