pub_date field is not visible in admin panel, even after configuring the app made migrations i tried every way possible from my side

2023-05-31 Thread Likhith K.P.
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length = 500) pub_date = models.DateTimeField(auto_now_add = True) def __str__(self): return self.question_text class Choice(models.Model): question

Re: i am getting this error when i try to search in admin panel

2023-05-18 Thread Brian Gitau
for the updated search_fields to work correctly. On Thu, May 18, 2023 at 2:01 PM Ravindra Magar wrote: > i am getting this error when i try to search in admin panel > > FieldError at /admin/school/center/ > Unsupported lookup 'icontains' for ForeignKey or join o

i am getting this error when i try to search in admin panel

2023-05-18 Thread Ravindra Magar
i am getting this error when i try to search in admin panel FieldError at /admin/school/center/ Unsupported lookup 'icontains' for ForeignKey or join on the field not permitted. admin.py @admin.register(Center) class CenterAdmin(ImportExportModelAdmin, admin.ModelAdmin): list_disp

Overriding the default django admin panel with a fully customized Rest Framework + React Dashboard

2023-04-15 Thread Kimanxo
Hello Devs, I Wish you're doing okay . Im currently working on a Blood Analysis Lab related project, the project should provide basic website description and CRUD functionalities concerning the blood exams, their status, ... Basically, I have a custom design for the admin panel wher

Clickable link in django admin Panel

2023-03-22 Thread Gurami Tchumburidze
I have problem to display clickable link in django admin panel next to 'icon' field or add help_text witch will be clickable and if i click on it, it must open this 'https://fonts.google.com/icons?icon.set=Material+Icons' website in new window of browther . [image: 111

Re: Please help me to add button functionality in django admin panel for filter list of objects

2021-08-08 Thread MR INDIA
This article can help : https://hakibenita.medium.com/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41 On Thursday, 5 August 2021 at 18:31:52 UTC+5:30 arvind@gmail.com wrote: > hey guys i want to add the action on click the list will be filter of > objects > > here the on cl

Re: Is there any way to custom group models in the admin panel?

2021-01-17 Thread Prashanjeet Halder
Not preferred but I guess you can do it by following the below-given steps: As soon as you end up creating your web app 1) Run the command: "python manage.py collectstatic" 2) Check for the static/admin/index.html file. 3) Edit the HTML files as per your need and convenience. Please let me know if

Re: Is there any way to custom group models in the admin panel?

2021-01-15 Thread onyilimba martins mclaren tochukwu
I stumbled on the need to do this, is there any pacakage that does this now? the one I saw was last updated 2018 On Wednesday, July 18, 2007 at 6:05:02 PM UTC+1 Sebastian Macias wrote: > I just opened a ticket for this. > > http://code.djangoproject.com/ticket/4918 > > Sebastian Macias > > > On

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
mail.com> wrote: >> >>> You are rendering the image tag img inside a textbox area. >>> >>> On Saturday, September 5, 2020, sourav chakraborty < >>> devops.sou...@gmail.com> wrote: >>> >>>> Hi All, >>>> >>>

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread hans alexander
akraborty < >> devops.sou...@gmail.com> wrote: >> >>> Hi All, >>> >>> I'm testing on Some Quiz project, while in admin panel using Summernote >>> admin can see the text editor and upload and the uploaded image >>> >>> class Ques

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
a textbox area. > > On Saturday, September 5, 2020, sourav chakraborty < > devops.sou...@gmail.com> wrote: > >> Hi All, >> >> I'm testing on Some Quiz project, while in admin panel using Summernote >> admin can see the text editor and upload and the uploa

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread Ogunsanya Opeyemi
You are rendering the image tag img inside a textbox area. On Saturday, September 5, 2020, sourav chakraborty wrote: > Hi All, > > I'm testing on Some Quiz project, while in admin panel using Summernote > admin can see the text editor and upload and the uploaded image > &

Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
Hi All, I'm testing on Some Quiz project, while in admin panel using Summernote admin can see the text editor and upload and the uploaded image class QuestionAdmin(SummernoteModelAdmin): summernote_fields = ('text',) admin.site.register(Question, QuestionAdmin) However, t

Getting error while importing xls file from django admin panel to csv for storing in database mysql gating error like

2020-05-08 Thread Chirag Patel
Imported file has a wrong encoding: 'charmap' codec can't decode byte 0x8d in position 1774: character maps to -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

Re: problem with admin panel

2020-04-17 Thread Cristhian Heredia Claure
skrev Cristhian Heredia Claure < > cris...@gmail.com >: > >> >> Hello everyone Sorry if it's not correct to post here this issue that I >> have... In a LINUX environment, after all configuration for my project, >> when I try to log in the admin site, the

Re: problem with admin panel

2020-04-17 Thread Andréas Kühne
everyone Sorry if it's not correct to post here this issue that I > have... In a LINUX environment, after all configuration for my project, > when I try to log in the admin site, the style of the page of the admin > panel is well stylized, as it should be. > But in the test that I

problem with admin panel

2020-04-16 Thread Cristhian Heredia Claure
Hello everyone Sorry if it's not correct to post here this issue that I have... In a LINUX environment, after all configuration for my project, when I try to log in the admin site, the style of the page of the admin panel is well stylized, as it should be. But in the test that I did

Re: How to create entire basic of website design without using django-admin panel

2020-03-09 Thread Omar Abou Mrad
The django admin is optional, you do not need to use it. Start with the official django tutorial: https://docs.djangoproject.com/en/3.0/intro/tutorial01/ On Mon, Mar 9, 2020 at 8:22 AM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > You could go to django docs > > > [image: --] > >

Re: How to create entire basic of website design without using django-admin panel

2020-03-08 Thread maninder singh Kumar
You could go to django docs [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Fri, Feb 28, 2020 at 12:21 PM nrupesh08 wrote: > > > login page based on roles (user, admin). insert data, update data, delete > data in (e

Re: How to create entire basic of website design without using django-admin panel

2020-03-08 Thread Ryan Nowakowski
> login page based on roles (user, admin). insert data, update data, delete > data in (entire rows). only particular update data in table > display forms in css class. the entire page without using django > admin. only access front-end. > any reference complete project for learning. pleas

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread nrupesh08
not problem. generally, any insert or update. any change user or admin is used front-end panel. django-admin only database table panel. their is no limitation. to delivery project. just minimum 2 panel to delivery (User + Admin). these are only front-end. that's why i am asking. and all elements

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread N Rupesh
not problem. generally, any insert or update. any change user or admin is used front-end panel. django-admin only database table panel. their is no limitation. to delivery project. just minimum 2 panel to delivery (User + Admin). these are only front-end. that's why i am asking. and all elements to

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread Motaz Hejaze
So all your problem is django admin ? Why ? On Fri, 28 Feb 2020, 9:02 am nrupesh08, wrote: > > > On Friday, February 28, 2020 at 12:19:55 PM UTC+5:30, nrupesh08 wrote: >> >> >> >> login page based on roles (user, admin). insert data, update data, delete >> data in (entire rows). only particular

Re: How to create entire basic of website design without using django-admin panel

2020-02-27 Thread nrupesh08
On Friday, February 28, 2020 at 12:19:55 PM UTC+5:30, nrupesh08 wrote: > > > > login page based on roles (user, admin). insert data, update data, delete > data in (entire rows). only particular update data in table > display forms in css class. the entire page without using django > admin.

How to create entire basic of website design without using django-admin panel

2020-02-27 Thread nrupesh08
login page based on roles (user, admin). insert data, update data, delete data in (entire rows). only particular update data in table display forms in css class. the entire page without using django admin. only access front-end. any reference complete project for learning. please help

Re: Confused about the Django admin panel!

2020-01-13 Thread Kasper Laudrup
Hi Tech Inject, On 13/01/2020 07.33, Tech Inject wrote: I am new at Django. and I am creating one college project now I need to add some good functionality at the admin panel. I want to add blog post type features with ajax to auto-save and all. I want to create data visualization using

Confused about the Django admin panel!

2020-01-13 Thread Tech Inject
I am new at Django. and I am creating one college project now I need to add some good functionality at the admin panel. I want to add blog post type features with ajax to auto-save and all. I want to create data visualization using charts, etc. now the problem arises is I am confused about is

Re: Admin Panel

2020-01-11 Thread Derek
For a better looking admin, try: * https://django-grappelli.readthedocs.io/en/latest/ * https://djangosuit.com/ For "admin issues" you'll need to be more specific. There are very few, if any, unsolved bugs in the Admin code On Thursday, 9 January 2020 21:02:03 UTC+2, APIJAY SHARMA wrote: >

Re: Admin Panel

2020-01-09 Thread Motaz Hejaze
search github for vali admin panel On Thu, Jan 9, 2020 at 9:01 PM APIJAY SHARMA wrote: > Can anyone help me out with good looking admin panels and how to customize > it and if possible how to make it more reliable!!! I am just getting > frustrated with admin issues in most of th

Admin Panel

2020-01-09 Thread APIJAY SHARMA
Can anyone help me out with good looking admin panels and how to customize it and if possible how to make it more reliable!!! I am just getting frustrated with admin issues in most of the modules -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
one. > Original message > From: Tafadzwa Marshal > Date: 2019/12/17 00:22 (GMT+02:00) > To: django-users@googlegroups.com > Subject: Re: User is not logging in admin panel > > hello, your problem is easy to solve. The 'createsuperuser' command >

Re: User is not logging in admin panel

2019-12-16 Thread dumbaclassics
. Original message From: Tafadzwa Marshal Date: 2019/12/17 00:22 (GMT+02:00) To: django-users@googlegroups.com Subject: Re: User is not logging in admin panel hello, your problem is easy to solve. The 'createsuperuser' command creates a user with the 'staff&#x

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
> i have created custom user model in account app by extending auth user >>> model. also i have creates register api to register user. i am able to >>> create superuser from command prompt and api as well. and both user are >>> storing in single User model along with

Re: User is not logging in admin panel

2019-12-16 Thread Suraj Thapa FC
nd both user are >> storing in single User model along with when i am hitting get request and i >> got response all user which register from command prompt and api. problem >> is that User is able to logging in admin panel which is registered by >> command line by command *py

Re: User is not logging in admin panel

2019-12-16 Thread Tafadzwa Marshal
auth user > model. also i have creates register api to register user. i am able to > create superuser from command prompt and api as well. and both user are > storing in single User model along with when i am hitting get request and i > got response all user which register from command promp

User is not logging in admin panel

2019-12-16 Thread sagar ninave
model along with when i am hitting get request and i got response all user which register from command prompt and api. problem is that User is able to logging in admin panel which is registered by command line by command *python manage.py createsuperuser *but user is not able tologging in admin

Re: How to add navigatinon bar or Menu Bar in Django Admin Panel only

2019-12-11 Thread Integr@te System
Hi, https://medium.com/crowdbotics/how-to-add-a-navigation-menu-in-django-admin-770b872a9531 On Wed, Dec 11, 2019, 15:22 Balaji Shetty wrote: > Hi > > Can anyone help me in adding Navigatinon Bar in Django Admin Panel in > Backend. > > I have to generate some customized repor

how to add graphs in django admin panel

2019-08-26 Thread Balaji Shetty
Hi everyone Can anybody suggest me how to add different graphs in django admin panel for relational models. I will apply count, group by clsuse query to display count. One more questions. We can change default django Administration GUI using django admin suit. How is it. Is there any other way

Re: How to overwrite the Django Admin Panel

2019-08-05 Thread Gil Obradors
Hi, If you are a beginner I don't recommend, BUT, is an interesting practice or challange , so go ;) https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Missatge de Pravin Yadav del dia dl., 5 d’ag. 2019 a les 13:08: > Hello Friends, > > I want to overwrites

How to overwrite the Django Admin Panel

2019-08-05 Thread Pravin Yadav
Hello Friends, I want to overwrites the Django Admin Template. If anyone have good way please suggest me. Thanks, Pravin Yadav -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, s

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread chaitanya goud
Shetty a > écrit : > >> >> HI >> >> *How can I add cascading drop down for Continent and Country in Django >> Admin Panel.* >> >> Here I add Continent and Country. >> >> When i change Continent, Country should be changed automatically. &g

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Maurice Aney
hi guys i think that it will be great to create a slak chanel Le jeu. 9 mai 2019 à 08:03, Balaji Shetty a écrit : > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i chang

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
drop down for Continent and Country in Django >> Admin Panel.* >> >> Here I add Continent and Country. >> >> When i change Continent, Country should be changed automatically. >> >> How can i achieve this. >> >> Consider my model.py >> >&

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Jani Tiainen
You could try django-select2 for example. to 9. toukok. 2019 klo 11.03 Balaji Shetty kirjoitti: > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i change Continent

Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
HI *How can I add cascading drop down for Continent and Country in Django Admin Panel.* Here I add Continent and Country. When i change Continent, Country should be changed automatically. How can i achieve this. Consider my model.py class Continent(models.Model): name

Re: How to override default Django Admin Panel Model display to Customization

2019-04-16 Thread Derek
Proxy models, with an associated Manager, are one way to achieve this - assuming your criteria are fixed. On Monday, 15 April 2019 15:25:49 UTC+2, Balaji Shetty wrote: > > Hi > > When i do login using Django Admin Panel , i can easily perform CRUD > operation on Models. > >

How to override default Django Admin Panel Model display to Customization

2019-04-15 Thread Balaji Shetty
Hi When i do login using Django Admin Panel , i can easily perform CRUD operation on Models. can i customize the display of Models Records in django Admin Panel Itself, when I select the model, I get all the records, But i want to filter the records based on some Criteria. Here is my model

Re: Feedback regarding Django-Suit for Django Admin Panel Customization - Need to add New Menu for Report Generations

2019-04-09 Thread Derek
ty wrote: > > Dear Sir, > > I am developing one web based application Django. I could understand > Simple Web application as well as entire Django Admin Panel working upto > this time. > > My requirement is > I want to add new menu in existing Admin Panel. I have been

Feedback regarding Django-Suit for Django Admin Panel Customization - Need to add New Menu for Report Generations

2019-04-09 Thread Balaji Shetty
Dear Sir, I am developing one web based application Django. I could understand Simple Web application as well as entire Django Admin Panel working upto this time. My requirement is I want to add new menu in existing Admin Panel. I have been searching a lot from many days but could not get any

Re: Image Upload in admin panel

2019-02-20 Thread Ryan Nowakowski
Check out ImageField: https://docs.djangoproject.com/en/2.1/ref/models/fields/#imagefield On February 14, 2019 12:37:04 PM CST, Surajeet Das wrote: >How do I upload images from admin panel and retrieve from a html page ? > >-- >You received this message because you are subscribed t

Re: Image Upload in admin panel

2019-02-14 Thread Akash Purandare
see the model in your admin panel and thus upload the image there. To show an image in the HTML page, you will need to create a view function and pass a context with {item: } and then write in your template code `` Regards Akash Purandare On Friday, February 15, 2019 at 12:07:04 AM UTC+5:30

Image Upload in admin panel

2019-02-14 Thread Surajeet Das
How do I upload images from admin panel and retrieve from a html page ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

How we can use just like Django admin panel in tornado but i am not want to use django-admin-panel in tornado app?

2018-12-27 Thread mazz ahmed
Hello, hope everyone doing well. I am working on tornado framework. I want to use admin panel for that app but I am getting a single solution using Django alongside of tornado for admin panel. I want to use some package in the tornado which gives me admin panel. If anyone knows let me know Please

Django admin panel records disappearing

2018-07-23 Thread dean raemaekers
Hello, I am using the Django admin tool as an internal tool to reach into a remote database. Most of my models work perfectly with the save. method additions I have added, but there are 2 that are not working. What happens is that the admin screen gives a successful "save" message, but the gr

Re: Creating Reports in Django Admin Panel

2018-06-04 Thread Joseph Mutumi
On Sat, Jun 2, 2018 at 6:23 AM, Mukul Mantosh wrote: > How to create a report in django-admin panel of number of users added to > the database in a day, week and month. Also, how many API calls for every > particular API has been made in a day, week and month. > > -- > You

Creating Reports in Django Admin Panel

2018-06-01 Thread Mukul Mantosh
How to create a report in django-admin panel of number of users added to the database in a day, week and month. Also, how many API calls for every particular API has been made in a day, week and month. -- You received this message because you are subscribed to the Google Groups "Django

Problem when trying to display field name on admin panel

2017-12-01 Thread Kubilay Yazoğlu
Hello. It gives error when I click on my app name in admin panel because of the "ratings" field. Without it, it loads fine. Error: KeyError at /admin/photo/photo/ 'manager' Error during template rendering In template C:\Users\Root\Desktop\PhotashBackend\sanal\lib\

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
gital Ocean one click install. > > Ubuntu 14.04 > > Nginx > > Postgres > > python 2.7 > > django 1.6 > > Test server > > http://162.243.201.237/ > > > > Admin panel: http://django-suit.readthedocs.io/en/develop/ > > http://162.243.201.237/admin/ > &

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Luis Zárate
he Django suit control panel and ran in to some problems with my setup. > Server: Digital Ocean one click install. > Ubuntu 14.04 > Nginx > Postgres > python 2.7 > django 1.6 > Test server > http://162.243.201.237/ > > Admin panel: http://django-suit.readthedocs.io/en/

Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
1.6 *Test server* http://162.243.201.237/ *Admin panel: *http://django-suit.readthedocs.io/en/develop/ http://162.243.201.237/admin/ user: demo pasword: demo *Static file command I ran* python manage.py collectstatic results: 0 static files copied, 116 unmodified. *Setting.py: Basics * DEBUG

You have to use a standard admin panel to the real sites, or it's no good?

2016-02-05 Thread ylativ oknesyl
You have to use a standard admin panel to the real sites, or it's no good? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django

Re: Shortcut for Date and Time is missing from the Django admin panel

2015-06-17 Thread aRkadeFR
Hello, What's your problems with date and time? Which shortcuts are you talking about? On 06/17/2015 10:55 AM, vishwa raj wrote: I am very new django user. Here I am facing something troubles In the date and time shortcut. Also I need to learn it ASAP. This would be my first backend language. S

Re: Serving static files (admin panel and others)

2014-12-13 Thread Muhammed Tüfekyapan
hammed Tüfekyapan wrote: > > I try many things to serve .css files but I can't do that. How can i > > serve .css and .js files in Django 1.7? > > > > > > I typed django manage.py collectstatic but still my admin panel don't > > load css. > >

Re: Serving static files (admin panel and others)

2014-12-13 Thread Florian Schweikert
On 14/12/14 00:55, Muhammed Tüfekyapan wrote: > I try many things to serve .css files but I can't do that. How can i > serve .css and .js files in Django 1.7? > > > I typed django manage.py collectstatic but still my admin panel don't > load css. > > What can

Serving static files (admin panel and others)

2014-12-13 Thread Muhammed Tüfekyapan
Hello everyone, I try many things to serve .css files but I can't do that. How can i serve .css and .js files in Django 1.7? I typed django manage.py collectstatic but still my admin panel don't load css. What can i do? Best. -- You received this message because you are sub

Re: how do i return an int as the returned object for admin panel

2014-07-15 Thread monoBOT
The __unicode__ method is meant to return a human readable representation of the model object as a unicode. EG: def __unicode__(self): return u'%(id)s' % {'id': self.vm__id} althought not very human readable is a correct __unicode__ method. The reason behind you wanting a int number in the _

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Tom Evans
On Mon, Jul 14, 2014 at 11:31 PM, Aeh. ABID wrote: > > In your def __unicode__ convert the current returned int to string : > >> def __unicode__(self): # Python 3: def __str__(self): >> return str(self.vm_id) > Stop, you are making my eyes bleed! It is really fairly important that you re

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Aeh. ABID
In your def __unicode__ convert the current returned int to string : def __unicode__(self): # Python 3: def __str__(self): > return str(self.vm_id) > credit to https://janetalkscode.wordpress.com/2013/09/28/django-long-object-has-no-attribute-encode/comment-page-1/ On Monday, July 14, 2

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Tom Evans
The __unicode__ method must return a unicode string. The function unicode(), or string formatting would suffice. Cheers Tom On Mon, Jul 14, 2014 at 10:38 PM, G Z wrote: > how do I fix this? > > > class Vm_licenses(models.Model): >vm_license_id = models.BigIntegerField(primary_key = True,

how do i return an int as the returned object for admin panel

2014-07-14 Thread G Z
how do I fix this? class Vm_licenses(models.Model): vm_license_id = models.BigIntegerField(primary_key = True, editable = False, db_column = 'vm_license_id') license= models.ForeignKey(License, on_delete = models.PROTECT) vm= models.ForeignKey(Vm, on_delete = models.PROTECT) class

How to create a custom admin panel for many models

2014-07-04 Thread 9devmail
I want to create a custom ModelAdmin, but for a mix of models, not just one. I have two example models: class Article(models.Model): author = models.GenericIPAddressField() # ... class Comment(models.Model): author = models.GenericIPAddressField() # ... Now I want to be able t

Search fields in admin panel

2014-05-19 Thread MoonWolf
I would like to search in admin panel for users that are not in django's database. They are accessed through LDAP, only uid's are in database. Other data are accessed through properties, for example: @property def full_name(self): return unicode(_ldap.search_s("ou=People,ou

Re: Pre-populating data in the admin panel

2014-02-03 Thread kerviel patrice
Le vendredi 31 janvier 2014 09:22:46 UTC+1, kerviel patrice a écrit : > > In the Django Admin I want to populate fields for a foreign key record > when I click the add (+) button > I tried with formfield_for_foreignkey but it does not work > > model > > class Property(models.Model): > name =

Re: Pre-populating data in the admin panel

2014-01-31 Thread shmengie
Add your foreign key table to the admin.py and register it. Admin will magically add the (+) button. Or add it inline and have it all on the same page. Depends on which is right for your application. admin.py: from project.models import * class PropertyAdmin(admin.ModelAdmin): pass admin.

Pre-populating data in the admin panel

2014-01-31 Thread kerviel patrice
In the Django Admin I want to populate fields for a foreign key record when I click the add (+) button I tried with formfield_for_foreignkey but it does not work model class Property(models.Model): name = models.CharField(_('name'), max_length=50) description = models.TextField(_('descri

Re: Why Django admin panel permissions table doesn't show any permissions to add to group?

2013-01-20 Thread John Roach
You are correct. More information is needed. For this you will need to see more of the code. Please check out https://bitbucket.org/johnroach/django-stock-project/ for this. By saying rebuilt django server I meant deleting all tables in specified database. And re-syncdb'ed the project. I reall

Re: Why Django admin panel permissions table doesn't show any permissions to add to group?

2013-01-19 Thread Russell Keith-Magee
at, Jan 19, 2013 at 9:39 PM, John Roach wrote: > I rebuilt my Django server and now I don't have any permissions to add to > groups or users. Why Django admin panel permissions table doesn't show any > permissions to add to group? > > The only thing that comes up is

Getting Access to Object in Admin Panel

2013-01-01 Thread Daniel Roseman
Others have given you the answer, bit note that the correct way to call an object's __unicode__ method is to do ` unicode(obj)`. As a general rule, you should never call the double- underscore methods directly. -- You received this message because you are subscribed to the Google Groups "Djang

Re: Getting Access to Object in Admin Panel

2012-12-30 Thread Amirouche
On Sunday, December 30, 2012 8:47:05 AM UTC+1, donarb wrote: > > You can code a string that references the __unicode__ method: > > list_display = ('__unicode__', ... > ref: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display -- You received

Getting Access to Object in Admin Panel

2012-12-29 Thread donarb
You can code a string that references the __unicode__ method: list_display = ('__unicode__', ... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/t0v9rTmc

Getting Access to Object in Admin Panel

2012-12-29 Thread That guy
After overriding list_display, I noticed that I lost access to being able to directly click on the object to view all its fields in the control panel. Hence, I needed to resort to defining return_unicode. I know that theres definitely a better way to approach it, so whats the 'Django' way of do

Re: Custom Admin Panel

2012-10-30 Thread Some Developer
On 30/10/2012 12:06, Bill Freeman wrote: On Mon, Oct 29, 2012 at 12:13 PM, Some Developer wrote: Hi, I'm in the process of writing a Django site and one of the requirements is that it have a custom admin panel and a custom control panel but I am having some problems coming up with the

Re: Custom Admin Panel

2012-10-30 Thread Bill Freeman
On Mon, Oct 29, 2012 at 12:13 PM, Some Developer wrote: > Hi, > > I'm in the process of writing a Django site and one of the requirements is > that it have a custom admin panel and a custom control panel but I am having > some problems coming up with the best way to org

Custom Admin Panel

2012-10-29 Thread Some Developer
Hi, I'm in the process of writing a Django site and one of the requirements is that it have a custom admin panel and a custom control panel but I am having some problems coming up with the best way to organise my application. My initial idea was to have the admin (and control) pane

ForeignKey save method admin panel

2012-09-23 Thread Johannes Frey
Hi! One question about the topic above. I'm just wandering what's going on in the admin panel when creating an instance of a ForeignKey in a special case. I've got two models. One regular one with the regular fields (like name, date etc.) an one who holds the ForeignKey to

Help with M2M/Foreign - Add button to forms like admin panel

2012-09-06 Thread Pablo Catalina
Hi, I want to add a button like admin panel to the M2M or Foreign key fields. With a popup (or something else) to add a new model (like in the admin panel). Ex. #Models class Vendor(models.Model): name = models.CharField(max_length=255,blank=False,unique=True) class Product(models.Model

Re: Provide a single text field (editable through admin panel) w/o using a whole model

2012-09-01 Thread Joni Bekenstein
How about https://github.com/comoga/django-constance ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ECCuEvzTJbIJ. To post to this group, send email to dj

Re: Provide a single text field (editable through admin panel) w/o using a whole model

2012-08-31 Thread Russell Keith-Magee
perly limit the number of > elements to 1 in the admin panel ? > > Any help appreciated, I'm sure I missed something obvious because it seems > like a basic need. (I'm new to django if u didn't catch it !) Think of it this way -- you have a piece of data that you want to

Provide a single text field (editable through admin panel) w/o using a whole model

2012-08-31 Thread RK
I'd like to have the content of one tag in the homepage editable in admin back-office, going through a whole model feels like an overkill, what alternatives do I have ? If there's no alternative, is there a way to properly limit the number of elements to 1 in the admin panel ?

Re: admin panel adding left-right panel

2012-07-02 Thread ledzgio
role = models.ManyToManyField(Position) . in admin: class PlayerAdmin(admin.ModelAdmin): ... ... filter_vertical = ('role') I want that in PlayerAdmin I have the choices POSITIONS values listed. What I

Re: admin panel adding left-right panel

2012-07-02 Thread ledzgio
table data? > > thanks again > > Il giorno lunedì 2 luglio 2012 17:28:48 UTC+2, Sunny Nanda ha scritto: >> >> You can specify a 'filter-horizontal' tuple in the admin model >> declaration: >> >> https://docs.djangoproject.com/en/dev/ref/contr

Re: admin panel adding left-right panel

2012-07-02 Thread ledzgio
6:56:07 PM UTC+5:30, ledzgio wrote: >> >> In default admin panel, under group permissions, I saw a double panels >> where I can add an element from the left list panel to the right one >> instead of selecting multiple elements by holding CTRL. I would like to >> have

Re: admin panel adding left-right panel

2012-07-02 Thread Sunny Nanda
You can specify a 'filter-horizontal' tuple in the admin model declaration: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.filter_horizontal -Sandeep On Monday, July 2, 2012 6:56:07 PM UTC+5:30, ledzgio wrote: > > In default admin pa

admin panel adding left-right panel

2012-07-02 Thread ledzgio
In default admin panel, under group permissions, I saw a double panels where I can add an element from the left list panel to the right one instead of selecting multiple elements by holding CTRL. I would like to have this panel implementation in my admin with my models, how can I do that

django admin panel list display

2012-05-17 Thread mithesh j.c
Hi Friends, I have added a custom form field in admin panel list display for one of my model and i have been able to save and retrieve the data properly however when i try to save the data for this custom field via actions it throws up an javascript alert "You have un

Re: Editing custom user profiles information in the admin panel

2012-04-06 Thread Ejah
bisson wrote: > > > > Good evening, > > > > I just tried the > > > followinghttps://docs.djangoproject.com/en/1.4/topics/auth/ > > > in order to add some custom fields to my users. I just looked in the > > > DB and admin panel, and these new fields wer

Re: Editing custom user profiles information in the admin panel

2012-04-06 Thread abisson
e. Syncdb > and you can edit. > Hth > > On 6 apr, 05:56,abisson wrote: > > > > > > > > > Good evening, > > > I just tried the followinghttps://docs.djangoproject.com/en/1.4/topics/auth/ > > in order to add some custom fields to my users. I just look

Re: Editing custom user profiles information in the admin panel

2012-04-06 Thread Ejah
uth/ > in order to add some custom fields to my users. I just looked in the > DB and admin panel, and these new fields were not added to the > auth_user table, nor the User Admin Panel. I created a new app that > contains the UserProfile Model that I want to add. I set the > AUTH_PROF

Editing custom user profiles information in the admin panel

2012-04-06 Thread abisson
Good evening, I just tried the following https://docs.djangoproject.com/en/1.4/topics/auth/ in order to add some custom fields to my users. I just looked in the DB and admin panel, and these new fields were not added to the auth_user table, nor the User Admin Panel. I created a new app that

recent 1.3.1 upgrade - admin panel throwing NoReverseMatch error now

2011-10-18 Thread Nick Nachefski
Hello, I've recently upgraded to 1.3.1 and am getting a NoReverseMatch exception with piston when attempting to view my admin panel. Has anyone else seen this with 1.3.1? Here is the relevant url.py config for my piston: blah_resource = Resource(handler=BLAH) urlpatterns = pat

  1   2   >