Project

General

Profile

Revision 3e2fcd4e

ID3e2fcd4eaf479a97ddb9081dc242192330e537fb
Parent 36f3b65f
Child f3599378

Added by Thomas Mullins about 11 years ago

Removed some of the fields on the add user admin page

View differences:

crm/robocrm/models.py
1 1
from django.db import models
2 2
from django.contrib.auth.models import User
3
from django.contrib import admin
3 4
from django.db.models.signals import post_save
4 5

  
5 6
# Machine Model
......
19 20
  user = models.OneToOneField(User)
20 21

  
21 22
  # Roboclub RFID Card number
22
  rfid = models.CharField(max_length=10, blank=True, default=0)
23
  rfid = models.CharField(max_length=10, blank=True, null=True)
23 24
  
24 25
  # Roboclub Shop Access Permissions
25 26
  machines = models.ManyToManyField(Machine, blank=True, null=True)
......
85 86
                                  choices=STATUS_CHOICES,
86 87
                                  default=GOOD)
87 88
  shop_status = models.CharField(max_length=2,
88
                                  choices=STATUS_CHOICES,
89
                                  default=GOOD)
89
                                 choices=STATUS_CHOICES,
90
                                 default=GOOD)
90 91
  def __unicode__(self):
91 92
    return self.user.username
92 93

  

Also available in: Unified diff