Brilliant!
Thanks very much.
That did the trick.
Thanks Adrian!
-Jake
Hello,
I'm greatly enjoying this excellent project.
However, I have a problem with users created through the admin web
interface being able to log into the admin site.
I get "Please enter a correct username and password." Even though all
users have "is_active" and "is_staff" set to True.
It's defi
I figured out what I was missing.
If you want your model to show up in the admin list page you must
supply a value for all defined foreign key contraints.
Not sure if that's an SQL thing (mysql did not complain about their
absence) or a Django thing.
Removing "blank=True" from all the foreign keys
Ok,
I've updated to the new Model syntax as shown below and I'm still
getting "No sites matched your search criteria" in the admin page when
I put a foreign key in the list_display definition. Everything works
great as soon as I take "thing" out of the list_display.
I've also tried adding db_col
Hi there,
I'm writing my first Django app and trying to get the Admin(
list_display ) to display ForeignKey names. Here's how I'm trying to do
it:
class Thing(meta.Model):
fields = (
meta.CharField('name' maxlength=60, primary_key=True),
)
class Entry(meta.Model):
def __rep
6 matches
Mail list logo