I have been trying to make a copy of the blog model and use it for my site with additional fields. I copied over the blog app folder and added "media" to the front of everything that had blog in it. I kept getting a TypeError "unorderable types: int() < str()" when I tried to go to the 127.0.0.1/admin screen.
Here is the post that shows all the error information https://groups.google.com/d/msg/mezzanine-users/PGw973kHxIk/gpE8N7fV_LwJ I noticed that the error was coming from the app_list portion of the mezzanine_tags.py file. I looked at the file and noticed that the app_list was based off "django.contrib.admin.sites.AdminSite.index", so I started comparing app_list line by line. I modified the mezzanine_tags.py file as follows and I can now go to the 127.0.0.1/admin screen and my new mediablog app is there. I am very new to python so I am not sure if I broke something else, but I am no longer getting the TypeError and can access the admin screen. app_list = list(app_dict.values()) > > app_list.sort(key=lambda x: x['name']) > > >> # Sort the models alphabetically within each app. > > for app in app_list: > > app['models'].sort(key=lambda x: x['name']) > > #sort = lambda x: x["name"] if x["index"] is None else x["index"] > > #for app in app_list: > > # app['models'].sort(key=sort) > > #app_list.sort(key=sort) > > return app_list > > I just noticed that the mediablog does not show up under content, but under its own section. So I am not sure now if this is a bug or not. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
