Changeset 1355:e0c075084dc8
- Timestamp:
- 10/18/09 21:45:39 (3 years ago)
- Branch:
- default
- Location:
- zine
- Files:
-
- 2 edited
-
forms.py (modified) (1 diff)
-
templates/admin/delete_user.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zine/forms.py
r1255 r1355 910 910 911 911 def context_validate(self, data): 912 if self.user.posts.count() is 0: 913 data['action'] = None 912 914 if data['action'] == 'reassign' and not data['reassign_to']: 913 915 # XXX: Bad wording -
zine/templates/admin/delete_user.html
r524 r1355 7 7 Do you really want to delete the user “{{ username }}”? 8 8 {% endtrans %}</p> 9 10 {%- if form.user.posts.count() > 0 %} 9 11 <p>{% trans post_count=form.user.posts.count() %} 10 12 What should happen to the {{ post_count }} post this user wrote? … … 14 16 {{ form.action() }} 15 17 <p>{{ form.reassign_to.label() }}: {{ form.reassign_to() }} 18 {%- endif %} 19 16 20 <div class="actions"> 17 21 <input type="submit" name="cancel" value="{{ _('No') }}">
Note: See TracChangeset
for help on using the changeset viewer.