-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to support newforms-admin better, fixed some minor bugs, clea…
…ned up the help strings git-svn-id: https://django-robots.googlecode.com/svn/trunk@12 12edf5ea-513a-0410-8a8c-37067077e60f committer: leidel <leidel@12edf5ea-513a-0410-8a8c-37067077e60f> --HG-- extra : convert_revision : 78c5bb1
- Loading branch information
Showing
6 changed files
with
76 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = (0, "3.2", None) | ||
VERSION = (0, 4, None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from django.contrib import admin | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
from robots.models import Url, Rule | ||
|
||
class RuleAdmin(admin.ModelAdmin): | ||
fieldsets = ( | ||
(None, {'fields': ('robot', 'sites')}), | ||
(_('URL patterns'), {'fields': ('allowed', 'disallowed')}), | ||
(_('Advanced options'), {'classes': ('collapse',), 'fields': ('crawl_delay',)}), | ||
) | ||
list_filter = ('sites',) | ||
list_display = ('robot', 'allowed_urls', 'disallowed_urls') | ||
search_fields = ('robot','urls') | ||
|
||
admin.site.register(Url) | ||
admin.site.register(Rule, RuleAdmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from django.conf.urls.defaults import * | ||
from robots.views import rules_list | ||
|
||
urlpatterns = patterns('robots.views', | ||
(r'^$', 'rules_list'), | ||
urlpatterns = patterns('', | ||
url(r'^$', rules_list, name='robots_rule_list'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters