#11243: Not possible to add Model with URLField with the Admin Interface
----------------------------------+-----------------------------------------
 Reporter:  engrams               |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.1-beta-1
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 ---
 models.py

 from django.db import models

 # Create your models here.
 class Weblink(models.Model):
     url = models.URLField(unique=True)
     def __unicode__(self):
         return self.url

 class Weblink2(models.Model):
     url = models.CharField(max_length=200, unique=True)
     def __unicode__(self):
         return self.url
 ---
 Activated Admin Interface.

 Can add Weblink Objects via the Postgres Database Interface (pgadmin). But
 not with
 the Django Admin interface. If the object save button is clicked at the
 http://localhost:8002/admin/references/weblink/add/ nothing is happening.
 Only Waiting for Localhost in Firefox and page loading activity in
 Firefox.

 Objects without URLField can be added via the Admin Interface without
 problems (Weblink2 is working).
 Worked in the release 1.0 but need the Development version (need the
 development version because of proxy classes in the model).

 Django version 1.1 beta 1, using settings 'testproject.settings'
 Development server is running at http://127.0.0.1:8002/
 Quit the server with CONTROL-C.
 [01/Jun/2009 04:36:05] "GET / HTTP/1.1" 404 1915
 [01/Jun/2009 04:36:09] "GET /admin HTTP/1.1" 301 0
 [01/Jun/2009 04:36:09] "GET /admin/ HTTP/1.1" 200 3986
 [01/Jun/2009 04:36:12] "GET /admin/references/weblink2/add/ HTTP/1.1" 200
 2688
 [01/Jun/2009 04:36:12] "GET /admin/jsi18n/ HTTP/1.1" 200 803
 [01/Jun/2009 04:36:17] "POST /admin/references/weblink2/add/ HTTP/1.1" 302
 0
 [01/Jun/2009 04:36:17] "GET /admin/references/weblink2/ HTTP/1.1" 200 3032
 [01/Jun/2009 04:36:21] "GET /admin/references/ HTTP/1.1" 200 2297
 [01/Jun/2009 04:36:23] "GET /admin/references/weblink/add/ HTTP/1.1" 200
 2681
 [01/Jun/2009 04:36:23] "GET /admin/jsi18n/ HTTP/1.1" 200 803

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11243>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to