Hi all,

My 'Projects' admin form has 'Notes'.  Notes have a non-user-editable 'note 
date' DateTimeField.  I haven't been able to figure out how to get the note 
date to get displayed in the admin interface in such a way that it's visible 
but not editable.  Any ideas?

Thanks in advance.  Below is the model stuff.

Eric.

class Project(models.Model):
    client = models.ForeignKey(Contact, db_column='contacts_id', 
related_name='contact')
    job_number = models.CharField(maxlength=20)
...
    class Meta:
        db_table = 'projects'
        ordering = ['-job_number', 'status']
    class Admin:
        list_display = ('job_number', 'name', 'assigned_to', 'status', 
'due_date', 'address', 'client',)
        search_fields = ['job_number', 'client', 'name',]
        list_filter = ['status', 'project_type']
        date_hierarchy = 'last_modified'
        fields = (
                  (None, {'fields': 
('job_number','assigned_to','status','project_date','due_date','client','bid_price','name','address','city','state','zip','project_type','last_modified',)}),
                  )


class ProjectNote(models.Model):
    notes = models.TextField("Note", core=True)
    note_date = models.DateTimeField(default=models.LazyDate(), 
                                     blank=True, editable=False)
    project = models.ForeignKey(Project, 
                                db_column='projects_id',
                                edit_inline=models.TABULAR,
                                num_in_admin=3)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to