Admin panel and url handling as Primary Key
|Reported by:||guruyaya||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The admin panel cannot get a url as a primary key of a model.
I can actually understand why this happens, and that makes me more
thrilled to help. Take this model for example:
url = models.CharField(max_length=600, primary_key=True)
rate = models.IntegerField(null=True, blank=True)
in the case Url.url=http://yahoo.com' (had to add slashes to avoid
being marked as a spammer on the ticket system, but the point should
As the primary key is a url, the relational link inside the admin
panel, becomes absolute. I cannot use the admin panel to rate it.
What do you think of that?
Change History (5)
comment:1 Changed 7 years ago by guruyaya
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 7 years ago by jefurii
- Component changed from Uncategorized to Admin interface
- Keywords security added