Changeset 2475
- Timestamp:
- 03/02/06 09:49:30 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/django/views/defaults.py
r1945 r2475 9 9 # Look up the object, making sure it's got a get_absolute_url() function. 10 10 try: 11 content_type = ContentType.objects.get _object(pk=content_type_id)11 content_type = ContentType.objects.get(pk=content_type_id) 12 12 obj = content_type.get_object_for_this_type(pk=object_id) 13 13 except ObjectDoesNotExist: django/branches/magic-removal/django/views/generic/create_update.py
r2455 r2475 172 172 lookup_kwargs.update(extra_lookup_kwargs) 173 173 try: 174 object = model._default_manager.get _object(**lookup_kwargs)174 object = model._default_manager.get(**lookup_kwargs) 175 175 except ObjectDoesNotExist: 176 176 raise Http404, "No %s found for %s" % (model._meta.app_label, lookup_kwargs) django/branches/magic-removal/django/views/registration/passwords.py
r2050 r2475 19 19 "Validates that a user exists with the given e-mail address" 20 20 try: 21 self.user_cache = User.objects.get _object(email__iexact=new_data)21 self.user_cache = User.objects.get(email__iexact=new_data) 22 22 except User.DoesNotExist: 23 23 raise validators.ValidationError, "That e-mail address doesn't have an associated user acount. Are you sure you've registered?"
