Age | Commit message (Collapse) | Author | Files | Lines |
|
And make sure each of them have a type.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This is a bad idea because it will get outdated quickly when django changes
and we should just use the version it distributes anyway.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
And honor the packager's notify flag, as Pierre pointed out.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This is, at least for me, more useful than the link to a specific
build of a package. We provide both so no one should lose here.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Random stupids in our HTML, this should be a little better at least.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This started out as a validation fix for the W3 validator: we had some <ul/>
elements that ended up on that page with no inner <li/> elements, so it was
invalid markup. I then realized we don't need to call the methods multiple
times so use the 'with' template tag.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We were doing a 2 queries for each 'Required By' entry- arch and repo as
usual. Add it to the original query so we don't waste time.
Noticed while looking at the glibc description page.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Put an actual NULL in the database and handle it for both display and
import. Also add a migration to clean up any bad data we currently have in
there. Fixes FS#17144.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Link directly to the right project in Flyspray instead of whatever the user
looked at last. Fixes FS#13166.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
FS#16752.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Especially when looking at packages, we always want the arch and repo.
Another big hunk of changes deals with the very inefficient signoffs code.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Now that maintainer is nullable, Django will use a LEFT OUTER JOIN with
this code, so orphan packages won't be omitted.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
[Dan: made a few other small touchups]
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Thanks to Evangelos Foutras for the inspiration. Recreated from scratch only
to make sure everything is in sync.
From this point on, you will need to have the 'south' Django/Python package
installed to use archweb.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
No need to slap 'archweb' in all of these in the settings file.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* Don't show checkboxes for non-authenticated users
* Fix up the adopt buttons to not be a table row
* Fix the form which didn't have a closing tag
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
FS#17287.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Hey, what do you know? Using a relational DB in a non-relational way
can come back to bite you. Go foreign keys!
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This should fix the issue with Community-Testing packages appearing in
ToDo lists.
After this change has been applied, simply edit and save a ToDo list to
make its Community-Testing packages go away.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Makes it easier to find a user since we have quite a few. FS#18055.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Just as commit 5faf6566 did for the main menu items, do the same for the dev
menu.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
The menu was rendered bottom to top in the html because the elements
were floated to the right. This caused text browsers visitors (no CSS
rendering) to see the menu backwards. I've modified the menu order and
made the items float to the left so the menu is correctly rendered in
text browsers.
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We also traverse relationships here, so select the associated items.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Use Django's select_related() on the TodolistPkg QuerySet to avoid
making 4 database queries per package. This way we're making just one
query, regardless of the number of packages in the Todo list.
Local testing with 1000 entries in a Todo list show that the loading
time has been reduced from 2675 ms to around 560 ms, while the number of
queries has been cut down from 8005, to only 5.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* Add models.py required file to app
* Use user_passes_test instead of custom superuser checking in
new_user_form as it implements the same "next" redirection as
login_required
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
The addition of a models.py file in public app is needed for django to
recognize it as an application for testing.
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
|
|
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
|
|
|
|
|
|
We should always highlight 'Home' when on the Django site. The sole
exception is the download page which has its own special place.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
|
|
|
|
|
|
also added user restrictions
|
|
|