show all results by default on archive page; order categories by name; add upload link; make account link work;

This commit is contained in:
Sanj 2011-07-03 06:19:54 +05:30
parent 725585980b
commit 69192cb169
5 changed files with 12 additions and 0 deletions

View File

@ -221,6 +221,7 @@ class Category(models.Model):
return self.name
class Meta:
ordering = ['name']
verbose_name = 'Study'
verbose_name_plural = 'Studies'

View File

@ -27,6 +27,8 @@ $(function() {
}, "json");
});
$('#filterForm').submit();
$('#prevBtn').click(function() {
var $page_no = $('#page_no');
var currPage = parseInt($page_no.val());

View File

@ -38,6 +38,9 @@
<li>
<a href="archive" title="The Edgwareroad.org Archive">Archive</a>
</li>
<li>
<a href="upload" title="File Uploader">Upload</a>
</li>
<li>
<a href="publish" title="Publish!">Publish</a>
</li>

View File

@ -1,4 +1,8 @@
{% extends 'main_base.html' %}
{% block content %}
<form action="" method="POST">
{{ form.as_ul }}<br />
<input type="submit" value="Submit" />
</form>
{% endblock %}

View File

@ -2,6 +2,7 @@
from django.conf.urls.defaults import *
import settings
from django.contrib.auth.views import login
# uncomment the next two lines to enable the admin:
from django.contrib import admin
@ -21,6 +22,7 @@ urlpatterns = patterns('',
(r'^sandbox/upload$', 'files.views.upload_files'),
(r'^sandbox/faq$', 'main.views.faq'),
(r'^sandbox/help$', 'main.views.help'),
(r'^sandbox/account$', login),
(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}),
(r'^robots.txt(?P<path>)$', 'django.views.static.serve', { 'document_root' : "/home/itf/soc/edgware/static/txt/robots.txt" } ),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'